Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropping and recreating a table in the same txn disables PK [CORE104] #428

Closed
firebird-issue-importer opened this issue Apr 25, 2006 · 17 comments

Comments

@firebird-issue-importer

Submitted by: nandod (nandod)

Is related to QA53

SFID: 1475979#⁠
Submitted By: nandod

This problem was verified with both Fb 1.5 and 2.0 RC 1
(SS, Win32, TCP/IP connection).

Steps to reproduce the problem:

1) create a table with a primary key:

create table test (acolumn int not null primary key);

2) disconnect & reconnect.

3) run the following script (with AUTO DDL OFF):

drop table test;

create table test (acolumn int not null primary key);

commit;

insert into test values (1);
insert into test values (1);

commit;

It should fail, but it succeeds. Dropping and
recreating the table in the same transaction did
something bad to the PK definition, which still appears
OK but the constraint isn't enforced.

SET AUTODDL ON (or committing after the drop table
statement) makes the problem go away.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 14, 2006

Commented by: Alice F. Bird (firebirds)

Date: 2006-04-30 05:43
Sender: dimitr
Logged In: YES
user_id=61270

I have it fixed locally, to be committed some day the next week.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 17, 2006

Modified by: @dyemanov

status: Closed [ 6 ] => Reopened [ 4 ]

SF_ID: 1475979 =>

resolution: Fixed [ 1 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 17, 2006

Modified by: @dyemanov

status: Reopened [ 4 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.1 [ 10041 ]

SF_ID: 1475979 =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 19, 2006

Modified by: Alice F. Bird (firebirds)

description: SFID: 1475979#⁠
Submitted By: nandod

This problem was verified with both Fb 1.5 and 2.0 RC 1
(SS, Win32, TCP/IP connection).

Steps to reproduce the problem:

1) create a table with a primary key:

create table test (acolumn int not null primary key);

2) disconnect & reconnect.

3) run the following script (with AUTO DDL OFF):

drop table test;

create table test (acolumn int not null primary key);

commit;

insert into test values (1);
insert into test values (1);

commit;

It should fail, but it succeeds. Dropping and
recreating the table in the same transaction did
something bad to the PK definition, which still appears
OK but the constraint isn't enforced.

SET AUTODDL ON (or committing after the drop table
statement) makes the problem go away.

=>

SFID: 1475979#⁠
Submitted By: nandod

This problem was verified with both Fb 1.5 and 2.0 RC 1
(SS, Win32, TCP/IP connection).

Steps to reproduce the problem:

1) create a table with a primary key:

create table test (acolumn int not null primary key);

2) disconnect & reconnect.

3) run the following script (with AUTO DDL OFF):

drop table test;

create table test (acolumn int not null primary key);

commit;

insert into test values (1);
insert into test values (1);

commit;

It should fail, but it succeeds. Dropping and
recreating the table in the same transaction did
something bad to the PK definition, which still appears
OK but the constraint isn't enforced.

SET AUTODDL ON (or committing after the drop table
statement) makes the problem go away.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jul 6, 2006

Modified by: @pcisar

assignee: Dmitry Yemanov [ dimitr ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 23, 2006

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 19, 2007

Modified by: @pcisar

Version: 2.0 RC1 [ 10031 ]

Version: 1.5.0 [ 10025 ]

SF_ID: 1475979 =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 21, 2007

Commented by: @pcisar

Fix confirmed for 2.1 Alpha 1. Test added.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 21, 2007

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

SF_ID: 1475979 =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 26, 2007

Commented by: @pcisar

Reopened to update ticket information.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 26, 2007

Modified by: @pcisar

status: Closed [ 6 ] => Reopened [ 4 ]

resolution: Fixed [ 1 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 26, 2007

Modified by: @pcisar

Fix Version: 2.1 Alpha 1 [ 10150 ]

SF_ID: 1475979 =>

Fix Version: 2.1.0 [ 10041 ] =>

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 26, 2007

Modified by: @pcisar

status: Reopened [ 4 ] => Closed [ 6 ]

resolution: Fixed [ 1 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jun 17, 2007

Modified by: @pcisar

Link: This issue is related to QA53 [ QA53 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 28, 2008

Modified by: @pcisar

Workflow: jira [ 10128 ] => Firebird [ 14328 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

Modified by: @pavel-zotov

QA Status: No test => Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants