1 connection.commit
<connection.commit />
Remarks
When a cursor is started there is the option to formalize a COMMIT. To execute this it should be assigned the value true to the autocommit attribute of the label <foreach>. To obtain information about when to use this possibility, see the section of the error situation Resulset not open, operation next not permitted.
End a transaction successfully.
[...] <connection.begin /> <lock table='gcommovh' mode='exclusive' /> <lock table='gcommovl' mode='exclusive' /> <update table='gcommovh'> <column name='valstk'>N</column> <where> cabid IN (SELECT cabid FROM @tmp_com) </where> </update> <update table='gcommovl'> <column name='impcos'>0</column> <where> cabid IN (SELECT cabid FROM @tmp_com) </where> </update> <connection.commit /> [...]
Notas
If all the operations of a transaction are completed successfully, The end of the transactionshould be specified so that the database is again in a consistent state using the tag <connection.commit>. All changes made by the transaction become visible to the other transactions, guaranteeing that they are preserved if there is a fall of the machine.