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

Regression for unsigned column changes #1863

Closed
wants to merge 1 commit into from

Conversation

spand
Copy link
Contributor

@spand spand commented Sep 21, 2023

It seems that since #1799 it is no longer possible to have multiple tables with unsigned columns since check constraints are not scoped to a table but in a global namespace.

I have created a failing test case that fails with following exception:

org.jetbrains.exposed.exceptions.ExposedSQLException: org.h2.jdbc.JdbcSQLSyntaxErrorException: Constraint "CHK_UNSIGNED_USHORT" already exists; SQL statement:
CREATE TABLE IF NOT EXISTS USHORT_TABLE2 (USHORT INT NOT NULL, CONSTRAINT chk_unsigned_ushort CHECK (USHORT BETWEEN 0 AND 65535)) [90045-220]
SQL: [CREATE TABLE IF NOT EXISTS USHORT_TABLE2 (USHORT INT NOT NULL, CONSTRAINT chk_unsigned_ushort CHECK (USHORT BETWEEN 0 AND 65535))]

@spand
Copy link
Contributor Author

spand commented Sep 21, 2023

My mistake. I see that it has already been reported in Youtrack.

@spand spand closed this Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant