Subject | Re: [IBO] very strange problem with ib_script |
---|---|
Author | Helmut Steinberger |
Post date | 2006-06-01T07:49:07Z |
Helen,
many thanks for your answer.
where it should be, I now use the OnStatement Event of the IB_Script
to commit each Statement. I know, this event is fired before the
execution of every statement, but any way I commit after
ib_script.execute.
In the OnError event of the ib_script, I fill a stringlist with the
errormessages and set raiseexception to false.
So now the script is running to the end, no matter if there is an
error in it or not, and I get all errors after the execution.
I think this is a good solution for me.
Do you see any problems with my approach to this?
My first tests worked very well.
Kind regards
Helmut
many thanks for your answer.
> IOBManager (?) must be running in an Autocommit transaction.Sorry, little mistake: It should be IBManager.
> That is how it is meant to work.For I can not be sure, that there is allways a commit in the script,
where it should be, I now use the OnStatement Event of the IB_Script
to commit each Statement. I know, this event is fired before the
execution of every statement, but any way I commit after
ib_script.execute.
In the OnError event of the ib_script, I fill a stringlist with the
errormessages and set raiseexception to false.
So now the script is running to the end, no matter if there is an
error in it or not, and I get all errors after the execution.
I think this is a good solution for me.
Do you see any problems with my approach to this?
My first tests worked very well.
Kind regards
Helmut