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

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 (18 kB)

Issue Links:

QA Status: Done successfully

 Description  « Hide
C:\MIX>isql -q
SQL> create database '' 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.

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
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

Pavel Cisar added a comment - 23/Sep/15 12:45 PM
Test created.