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

                 Key: CORE-4304
                 URL: http://tracker.firebirdsql.org/browse/CORE-4304
             Project: Firebird Core
          Issue Type: Bug
          Components: Engine
    Affects Versions: 3.0 Alpha 1
            Reporter: Pavel Zotov
            Priority: Minor
         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.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to