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

COMMIT statement that was occasionally inserted after DROP DATABASE prevents ISQL from executing code that follows after this (useless) COMMIT. [CORE5272] #5550

Open
firebird-issue-importer opened this issue Jun 12, 2016 · 0 comments

Comments

@firebird-issue-importer

Submitted by: @pavel-zotov

Run this script:

shell del c:\temp\tmp4test1.fdb 2>nul;
shell del c:\temp\tmp4test2.fdb 2>nul;
set bail on;
set list on;
set wng off;
--set echo on;

create database 'localhost:c:\temp\tmp4test1.fdb' user 'sysdba' password 'masterke';
select mon$database_name from mon$database;
commit;
drop database;

-- commit; ------------------ [ A ]

create database 'localhost:c:\temp\tmp4test2.fdb' user 'sysdba' password 'masterke';
select mon$database_name from mon$database;
commit;
drop database;

It's output will be:

MON$DATABASE_NAME C:\TEMP\TMP4TEST1.FDB

MON$DATABASE_NAME C:\TEMP\TMP4TEST2.FDB

Now UNCOMMENT statement 'COMMIT' that is marked as [ A ] and repeat script.
Output will be:

MON$DATABASE_NAME C:\TEMP\TMP4TEST1.FDB

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

Successfully merging a pull request may close this issue.

None yet
1 participant