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

Collation not propagated between record formats [CORE1432] #1850

Closed
firebird-automations opened this issue Aug 29, 2007 · 9 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: prenosil (prenosil)

Relate to CORE3045
Is related to QA331

Votes: 2

* First create table/column with domain using case sensitive collation and insert some data:

CREATE DOMAIN D_1250 VARCHAR(10) CHARACTER SET WIN1250 COLLATE WIN1250;

CREATE TABLE T (I INTEGER, A D_1250);
INSERT INTO T VALUES(10, 'a');
COMMIT;

SELECT * FROM T WHERE A='A';
Records affected: 0

So far o.k.

* And now alter the column to use domain with case insensitive collation:
CREATE DOMAIN D_CZ VARCHAR(10) CHARACTER SET WIN1250 COLLATE WIN_CZ;
ALTER TABLE T ALTER A TYPE D_CZ;

But as you can see here, the new collation is not used:
SELECT * FROM T WHERE A='A';
Records affected: 0

Although there are now two record formats in RDB$FORMATS,
the engine use values from the old one (because this format is used to store our data)
and does not convert data to new format.

Here, simple dummy update will "fix" it:
UPDATE T SET I=I;

SELECT * FROM T WHERE A='A';
I A
=========== ==========
10 a
Records affected: 1

Commits: cf7ae27

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 12911 ] => Firebird [ 15045 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 Beta 1 [ 10251 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue relate to CORE3045 [ CORE3045 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA331 [ QA331 ]

@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