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

Renaming a stored property with only a case change results in "column already exists" error #1329

Open
danchanka opened this issue Nov 8, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@danchanka
Copy link
Collaborator

When attempting to rename a stored property by changing only the case (e.g., renaming serverTimezone to serverTimeZone), an error occurs stating that a column with the specified name already exists. This issue arises because column names in PostgreSQL are case-insensitive by default and are stored in lowercase. Therefore, changing only the case of a column name is interpreted as an attempt to rename the column to an already existing name, causing a conflict.

@danchanka danchanka added the bug Something isn't working label Nov 8, 2024
@danchanka danchanka self-assigned this Nov 8, 2024
@danchanka
Copy link
Collaborator Author

Similar problem exists when attempting to rename tables

@danchanka
Copy link
Collaborator Author

It was decided in version 6 to simply check during column/table renaming that the names differ by more than just case. Then, in version 7, the default dbNamingPolicy was updated to enforce lowercase conversion when creating dbName for properties and tables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: New
Development

No branches or pull requests

1 participant