Issue Details (XML | Word | Printable)

Key: CORE-4304
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Adriano dos Santos Fernandes
Reporter: Pavel Zotov
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Engine crashes when attempt to REcreate table with FK after syntax error before such recreating

Created: 24/Dec/13 05:22 PM   Updated: 23/Sep/15 12:45 PM
Component/s: Engine
Affects Version/s: 2.5.2 Update 1, 3.0 Alpha 1, 3.0 Alpha 2
Fix Version/s: 3.0 Beta 1

File Attachments: 1. Zip Archive gdb-fbserver-when-retry-create-table-with-FK-after-syntax-error.zip (18 kB)

Issue Links:
Relate
 

QA Status: Done successfully


 Description  « Hide
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.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.