-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
ALTER TABLE ALTER COLUMN <textual_field> can not be changed properly in some cases #7924
Comments
If I had to guess, it simply doesn't change the collation, so for the second case, the collation id of the old collation is the same as the collation id of the new collation. E.g. WIN_PTBR is RDB$COLLATION_ID 6, and BS_BA is also id 6. Same for WIN1257_EE / PXW_INTL: id 1, and UNICODE_CI / WIN1257_LV: id 3 That said, I think this should be two separate issues: One for the not changing of the character set, and one for the changing of the character set, but not resetting the collation. |
It looks like at least first one is my fault. I'm preparing PR. |
About second issue: is it really allowed to reference not-yet-existing column? PS: Oops, ignore this comment, I mixed up column renaming and addition. |
Second issue is a duplicate of #2842 for non-domain based new type. |
In some cases 'ALTER TABLE ... ALTER COLUMN <textual_field> type ... <new_charset>' can lead either to unchanged character set of <textual_field> or this character set is changed but COLLATE attribute gets value that can not be explained. Of course, following normally can be run only against empty tables:
case-1.
case-2.
The text was updated successfully, but these errors were encountered: