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 commits changes rather rollback them when Ctrl-C is pressed (on Windows) [CORE3664] #4014

Open
firebird-automations opened this issue Nov 16, 2011 · 0 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

C:\1INSTALL\FIREBIRD\FB_2_5>.\bin\isql TTT.FDB
Database: TTT.FDB
SQL> recreate table t(id int, f01 int); commit;
SQL> insert into t values(1, 100);
SQL> insert into t values(2, 200);
SQL> insert into t values(3, 999);
SQL> update t set f01=-f01 order by id desc rows 1;
SQL> -- NOW PRESS CTRL-C ---

C:\1INSTALL\FIREBIRD\FB_2_5>.\bin\isql TTT.FDB
Database: TTT.FDB
SQL> select * from t;

      ID          F01

============ ============
1 100
2 200
3 -999

PS. In trace log there will be following text for last update statement and pressing Ctrl-C just after update:
< ... skipped ...>
2011-11-16T18:30:40.0460 (1664:0212DEE0) EXECUTE_STATEMENT_FINISH
C:\1INSTALL\FIREBIRD\FB_2_5\TTT.FDB (ATT_5, SYSDBA:NONE, NONE, XNET:TLPRG)
C:\1INSTALL\FIREBIRD\FB_2_5\bin\isql.exe:1668
(TRA_24, CONCURRENCY | WAIT | READ_WRITE)

Statement 117:
-------------------------------------------------------------------------------
update t set f01=-f01 order by id desc rows 1
0 records fetched
0 ms, 16 fetch(es), 1 mark(s)

Table Natural Index Update Insert Delete Backout Purge Expunge
***************************************************************************************************************
T 3 1

2011-11-16T18:30:46.6870 (1664:0212DEE0) COMMIT_TRANSACTION
C:\1INSTALL\FIREBIRD\FB_2_5\TTT.FDB (ATT_5, SYSDBA:NONE, NONE, XNET:TLPRG)
C:\1INSTALL\FIREBIRD\FB_2_5\bin\isql.exe:1668
(TRA_25, READ_COMMITTED | NO_REC_VERSION | WAIT | READ_WRITE)
25 ms, 1 read(s), 11 write(s), 1 fetch(es), 1 mark(s)

2011-11-16T18:30:46.7180 (1664:0212DEE0) COMMIT_TRANSACTION
C:\1INSTALL\FIREBIRD\FB_2_5\TTT.FDB (ATT_5, SYSDBA:NONE, NONE, XNET:TLPRG)
C:\1INSTALL\FIREBIRD\FB_2_5\bin\isql.exe:1668
(TRA_24, CONCURRENCY | WAIT | READ_WRITE)
24 ms, 1 read(s), 1 write(s), 1 fetch(es), 1 mark(s)

2011-11-16T18:30:46.7180 (1664:0212DEE0) DETACH_DATABASE
C:\1INSTALL\FIREBIRD\FB_2_5\TTT.FDB (ATT_5, SYSDBA:NONE, NONE, XNET:TLPRG)
C:\1INSTALL\FIREBIRD\FB_2_5\bin\isql.exe:1668

2011-11-16T18:30:46.7180 (1664:0212DEE0) TRACE_FINI
SESSION_1 Firebird Audit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant