Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[isql] Wrong message "Rolling back work" when have "set transaction" inside script #8013

Open
gladiston opened this issue Feb 20, 2024 · 4 comments

Comments

@gladiston
Copy link

clientes.zip

This script running well as:
isql -ch iso8859_1 clientes.sql
but always says:
"Rolling back work"
Despite this, everything worked fine. Maybe this message is a bug.

On the Firebird support forum, some guys suggest that "commit;^" instead of just "commit^" are tricking the program.

@mrotteveel
Copy link
Member

mrotteveel commented Feb 20, 2024

The problem is not the commit;^ vs commit^. The problem seems to be that explicitly starting a transaction with set transaction will result in ISQL always printing out the "Rolling back work" message, even if the last transaction was committed.

@gladiston
Copy link
Author

gladiston commented Feb 20, 2024

I´am not intent to start a transaction, just specify/set a TIL with lock timeout.
You think that I need to put an explicit 'start(begin) transaction'?

@mrotteveel
Copy link
Member

There is no such command in Firebird or ISQL. What you're doing is fine, the problem is what ISQL does after any set transaction statement has occurred in the script.

Also, everything in Firebird is done in transactions (even if you don't execute set transaction, ISQL will start one with default settings).

@gladiston
Copy link
Author

So it's a small bug that just has to do with a message that shouldn't appear, a bug of minimal concern.
Thanks for tips.

@gladiston gladiston changed the title [isql] Wrong message "Rolling back work" when have much commit;^ inside script [isql] Wrong message "Rolling back work" when have "set transaction" inside script Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants