-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
sql: error in schema change during begin with reference #15283
Comments
Also happens when using INTERLEAVE, even when no REFERENCES is specified. |
I can reproduce this only through the cockroach CLI |
This is happening because after executing the schema change
the server is seeing a This is specific to the CLI |
Ok, I'll take that. |
It's probably safe to bump this to 1.1 also, since it's not a bug, just a surprising behavior. |
The PR that closed this has been reverted in #15511, so reopening. |
the issue as described is no longer an issue. I just tried to reproduce it. There is another issue: #13505 related to not being able to use a table created with an fk in the same transaction. |
This demonstrates that adding a table in a
begin
will fail if it includes a foreign key reference. Is this known and intended? I spent an hour being really confused about what was going on.The text was updated successfully, but these errors were encountered: