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

Alter table not respecting collation [CORE2426] #2842

Closed
firebird-automations opened this issue Apr 14, 2009 · 8 comments
Closed

Alter table not respecting collation [CORE2426] #2842

firebird-automations opened this issue Apr 14, 2009 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

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.
unsuccessful metadata update.
partner index segment no 1 has incompatible data type.

Looks like FIELD_A still has old collation. If I change system tables to force the new collation, I can create the FK.

Commits: 34bf21b

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

More dangerous behavior observed:

create domain A_DOMAIN VARCHAR(14) CHARacter SET WIN1252 COLLATE WINPT_BR;
create domain B_DOMAIN VARCHAR(14) CHARacter SET ISO8859_1 COLLATE PT_BR;

create table t (FIELD_A VARCHAR(14) CHARacter SET WIN1252 COLLATE WIN1252);
alter table t alter field_a type b_domain;

show table t; -- colattion changes to de_de

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Version: 2.5 Beta 1 [ 10251 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC1 [ 10300 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA398 [ QA398 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

QA test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test => Done successfully

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment