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

Engine crashes when attempt to REcreate table with FK after syntax error before such recreating [CORE4304] #4627

Closed
firebird-automations opened this issue Dec 24, 2013 · 9 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @pavel-zotov

Is related to QA585

Attachments:
gdb-fbserver-when-retry-create-table-with-FK-after-syntax-error.zip

C:\MIX>isql -q
SQL> create database '192.168.0.220/3330:/var/db/fb30/tmp1312242114.fdb' user 'sysdba' password 'masterke';
SQL> recreate table t1(x int);
SQL> recreate table t1(x int primary key, y int references t1(z)); -- NB: there is no field `z` in this table, this was misprit
Statement failed, SQLSTATE = 42000
unsuccessful metadata update
-unknown ISC error 336397289
-could not find UNIQUE or PRIMARY KEY constraint in table T1 with specified columns

--- #⁠#⁠#⁠ now retry without syntax errors: #⁠#⁠#⁠

SQL> recreate table t1(x int primary key, y int references t1(x));
-- pause ~ 5 seconds, after which:
Statement failed, SQLSTATE = 08006
Error reading data from the connection.
SQL>

Please see in attach stacktraces for two sequential runs of this.

Commits: 81d2999 FirebirdSQL/fbt-repository@f884ae7

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

Attachment: gdb-fbserver-when-retry-create-table-with-FK-after-syntax-error.zip [ 12408 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pavel-zotov

ЗЫ.
SQL> show version;
ISQL Version: WI-V2.5.3.26722 Firebird 2.5
Server version:
Firebird/linux AMD64 (access method), version "LI-T3.0.0.30792 Firebird 3.0a1 Extents"
Firebird/linux AMD64 (remote server), version "LI-T3.0.0.30792 Firebird 3.0a1 Extents/tcp (oel64)/P12"
Firebird/x86/Windows NT (remote interface), version "WI-V2.5.3.26722 Firebird 2.5/tcp (csprog)/P12"
on disk structure version 12.0

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Version: 3.0 Alpha 2 [ 10560 ]

Version: 2.5.2 Update 1 [ 10521 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 3.0 Beta 1 [ 10332 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA585 [ QA585 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: Done successfully

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Test created.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

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