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

Object INDEX is in use & RECREATE TABLE [CORE1800] #2227

Open
firebird-automations opened this issue Mar 25, 2008 · 0 comments
Open

Object INDEX is in use & RECREATE TABLE [CORE1800] #2227

firebird-automations opened this issue Mar 25, 2008 · 0 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: prenosil (prenosil)

Votes: 1

Screenshot from FB2.0/2.1:
--------------------
CREATE TABLE TAB(
ID INTEGER,
A VARCHAR(100),
CONSTRAINT CU UNIQUE(A));

RECREATE TABLE TAB(
ID INTEGER,
A VARCHAR(2000),
CONSTRAINT CU UNIQUE(A));

Statement failed, SQLCODE = -607
unsuccessful metadata update
-key size exceeds implementation restriction for index "CU"

RECREATE TABLE TAB(
ID INTEGER,
A VARCHAR(2000),
CONSTRAINT CU UNIQUE(A));

Statement failed, SQLCODE = -607
unsuccessful metadata update
-object INDEX is in use
--------------------

At this point it is not possible to e.g. drop the table (...object Index in use ...),
and it is not possible to apply usual solution, i.e. commit the transaction
holding the object, since no transaction is active.
The only solution is to disconnect.

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

No branches or pull requests

1 participant