Alter table not respecting collation [CORE2426] #2842
Submitted by: @WarmBooter
Is related to QA398
Table already exists with FIELD_A VARCHAR(14) CHARSET WIN1252 COLLATE WIN1252;
Create a domain A_DOMAIN VARCHAR(14) CHARSET WIN1252 COLLATE WINPT_BR;
Use "alter table" to change FIELD_A to type A_DOMAIN
Try to create a FK in some other table, referencing FIELD_A and you will get:
This operation is not defined for system tables.
Looks like FIELD_A still has old collation. If I change system tables to force the new collation, I can create the FK.
The text was updated successfully, but these errors were encountered:
Commented by: @asfernandes
More dangerous behavior observed:
create domain A_DOMAIN VARCHAR(14) CHARacter SET WIN1252 COLLATE WINPT_BR;
create table t (FIELD_A VARCHAR(14) CHARacter SET WIN1252 COLLATE WIN1252);
show table t; -- colattion changes to de_de