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-automations opened this issue Apr 25, 2006 · 17 comments

Comments

@firebird-automations
Copy link
Collaborator

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-automations
Copy link
Collaborator Author

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-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

SF_ID: 1475979 =>

resolution: Fixed [ 1 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.1 [ 10041 ]

SF_ID: 1475979 =>

@firebird-automations
Copy link
Collaborator Author

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-automations
Copy link
Collaborator Author

Modified by: @pcisar

assignee: Dmitry Yemanov [ dimitr ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Version: 2.0 RC1 [ 10031 ]

Version: 1.5.0 [ 10025 ]

SF_ID: 1475979 =>

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Fix confirmed for 2.1 Alpha 1. Test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

SF_ID: 1475979 =>

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Reopened to update ticket information.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

resolution: Fixed [ 1 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Fix Version: 2.1 Alpha 1 [ 10150 ]

SF_ID: 1475979 =>

Fix Version: 2.1.0 [ 10041 ] =>

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA53 [ QA53 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

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