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
Pavel Zotov made changes - 24/Dec/13 05:22 PM
Field Original Value New Value
Attachment gdb-fbserver-when-retry-create-table-with-FK-after-syntax-error.zip [ 12408 ]
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

Adriano dos Santos Fernandes made changes - 10/Feb/14 03:17 PM
Assignee Adriano dos Santos Fernandes [ asfernandes ]
Adriano dos Santos Fernandes made changes - 11/Feb/14 02:44 PM
Affects Version/s 3.0 Alpha 2 [ 10560 ]
Affects Version/s 2.5.2 Update 1 [ 10521 ]
Adriano dos Santos Fernandes made changes - 11/Feb/14 02:54 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 3.0 Beta 1 [ 10332 ]
Resolution Fixed [ 1 ]
Pavel Cisar made changes - 29/Mar/14 05:48 PM
Link This issue is related to QA-585 [ QA-585 ]
Pavel Zotov made changes - 29/May/15 09:39 PM
Status Resolved [ 5 ] Resolved [ 5 ]
QA Status Done successfully
Pavel Cisar added a comment - 23/Sep/15 12:45 PM
Test created.

Pavel Cisar made changes - 23/Sep/15 12:45 PM
Status Resolved [ 5 ] Closed [ 6 ]