Bug #33
can create same model twice with different types
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
fixed
Description
The following is accepted by mulgara:
<br/>
<br/>
create <<a href="local:///foo#m1>;">local:///foo#m1&gt;;</a>
<br/>
create <<a href="local:///foo#m1">local:///foo#m1</a>> <<a href="http://mulgara.org/mulgara#XMLSchemaModel>;">http://mulgara.org/mulgara#XMLSchemaModel&gt;;</a>
<br/>
<br/>
This then results in a partially unusable database, as this
<br/>
error cannot be corrected anymore. E.g.
<br/>
<br/>
drop <<a href="local:///foo#m1>;">local:///foo#m1&gt;;</a>
<br/>
<br/>
produces the error
<br/>
<br/>
Error resolving [$s $p $o $_from] from <a href="local:///foo#m1">local:///foo#m1</a>
<br/>
Model 287 has more than one type!
<br/>
<br/>
It would be more robust if the 'create' checked that the model type
<br/>
is the same in the case where the model already exists.
<br/>
Updated by Andrae Muys - over 15 years ago
Fix merged into trunk as revision <a href="http://mulgara.org/trac/changeset/258">258</a>