Zsqlprocessor1 error commit work

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
Dfox
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 24.03.2024, 23:41

Zsqlprocessor1 error commit work

Post by Dfox »

Error commit work; in firebird SQL script
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1916
Joined: 17.01.2011, 14:17

Re: Zsqlprocessor1 error commit work

Post by marsupilami »

Hello,

could you please try to create a sample project that shows the error? I use Firebird on a daily basis with TZSQLProcessor and for me it works.

Best regards,

Jan
Dfox
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 24.03.2024, 23:41

Re: Zsqlprocessor1 error commit work

Post by Dfox »

do the following and put it at the end of the firebird sql script
commit work;
Dfox
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 24.03.2024, 23:41

Re: Zsqlprocessor1 error commit work

Post by Dfox »

exemple

Code: Select all

update table set id = 1;
commit work;
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1916
Joined: 17.01.2011, 14:17

Re: Zsqlprocessor1 error commit work

Post by marsupilami »

You are not supposed to use commit in the script.

Call TZConnection.Commit after you executed the script successfully.
Dfox
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 24.03.2024, 23:41

Re: Zsqlprocessor1 error commit work

Post by Dfox »

OK thanks
Post Reply