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: Descending order - Click to sort in ascending order
Pavel Cisar added a comment - 23/Sep/15 12:45 PM
Test created.

Pavel Zotov added a comment - 24/Dec/13 05:24 PM
ЗЫ.
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