Hello,

I was wondering how to determine if an UPDATE succeeds.  For example, if I
have the following document:

<ROOT id="1">
     <OBJECT1 id="2">
          <OBJECT2 id="3"/>
     </OBJECT1>
</ROOT>

if query = UPDATE INSERT(<OBJECT3 id="4"></OBJECT3>) into
doc("mydoc")//*...@id='99']

and I call:

int res = SEexecute(conn, query);

res is 8 (SEDNA_UPDATE_SUCCEEDED), but since there was no object with
id='99', the new object never actually was inserted.  If the query had
id='3', then the function returns SEDNA_UPDATE_SUCCEEDED, but in this case,
the new object was inserted.

Is there a way to determine if the new object was actually inserted?  Does
SEDNA_UPDATE_SUCCEEDED just mean the syntax of the stament is correct?

Thanks in advance for your help,

Garrett Beaubien.
------------------------------------------------------------------------------
Forrester recently released a report on the Return on Investment (ROI) of
Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even
within 7 months.  Over 3 million businesses have gone Google with Google Apps:
an online email calendar, and document program that's accessible from your 
browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to