Menu

#2 error when inserting unknown field. Yet insert working !

open
5
2004-07-12
2004-07-12
No

Following error reporting :

trying to insert an object containing a field that does
not exist throws an error "Unknown fatal error while
executing"

example :

<xdfl:_DBDEF_COMPILE name="dbobject" >
<xdfl:DB_AUTODESC
connection="@@[VAL:DSN]@@" expand_field="1">

<node name="dummy" DBtable="DUMMY" pkey="@id">
<field name="@id" DBfield="id"/>
</node>
</xdfl:DB_AUTODESC >
</xdfl:_DBDEF_COMPILE >

<xdfl:OUTPUT >

<xdfl:DB_SET connection="@@[VAL:DSN]@@"
target="dbobject" action="insert">
<dummy id="1">
<wrong>whatever</wrong>
</dummy>
</xdfl:DB_SET >
</xdfl:OUTPUT >

Where "wrong" is not a field of table "DUMMY"

Result : error "unknown fatal error when executing" BUT
INSERTION IS DONE (wich would be fine, if no error were
thrown)

Discussion


Log in to post a comment.

MongoDB Logo MongoDB