OK, i checked the code:

If DENY_OPERATION is given back by the interceptor a SQL exception is raised
and the transaction is rolled back if set to autoCommit = false

If IGNORE_OPERATION or GRANT_OPERATION is given back by the interceptor the
transaction is committed if autoCommit is false.
In case of IGNORE_OPERATION the following update of the event is not done.

If the Interceptor raises a ValidationException the transaction is rolled
back too.

So if you have an exception inside your interceptor you have two
possibilities:

Return DENY_OPERATION which generates SQLException with an NOGRANT message
or throw a validation exeception whith your own error text.

Maybe we need a fourth flag: ROLLBACK_OPERATION wich will not raise an
execption an just rollback the database? Is it missing? 

Regards,
Henner




-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
DbForms Mailing List

http://www.wap-force.net/dbforms

Reply via email to