You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
ЗЫ.
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
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
The text was updated successfully, but these errors were encountered: