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-issue-importer opened this issue Apr 14, 2009 · 8 comments
Closed

Alter table not respecting collation [CORE2426] #2842

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

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 23, 2009

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 23, 2009

Modified by: @asfernandes

Version: 2.5 Beta 1 [ 10251 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 23, 2009

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC1 [ 10300 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 24, 2011

Modified by: @pcisar

Link: This issue is related to QA398 [ QA398 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 31, 2011

Commented by: @pcisar

QA test added.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented May 31, 2011

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 18, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 19, 2016

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants