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

Inserting Käse into a CHARACTER SET ASCII column succeeds [CORE3416] #3779

Closed
firebird-automations opened this issue Mar 28, 2011 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

firebird-automations commented Mar 28, 2011

Submitted by: Michael Ludwig (milu)

Is related to QA562

Here's a script to insert "Käse" into a column of CHARACTER SET ASCII.
This shouldn't be possible. I think it is a bug.

C:\Programme\Firebird\Firebird_2_5 :: chcp 1252
Aktive Codepage: 1252.

C:\Programme\Firebird\Firebird_2_5 :: bin\isql -u milu -p moin eins25
Database: eins25, User: milu
SQL> set names cp1252;
SQL> set warnings on;
SQL> create table tascii (s varchar(10) character set ascii);
SQL> create table tlatin (s varchar(10) character set latin1);
SQL> insert into tascii values ('Käse');
SQL> select * from tascii;

S

Käse

SQL> -- This should have raised an error, or truncation warning.
SQL> insert into tlatin values ('Käse');
SQL> select * from tlatin;

S

Käse

SQL> insert into tlatin select * from tascii;
Statement failed, SQLSTATE = 22018
arithmetic exception, numeric overflow, or string truncation
-Cannot transliterate character between character sets
SQL> -- This is wrong, all ASCII should go into a Latin1 table.
SQL> -- Probably a consequence of the ASCII insertion bug above.
SQL> commit;
SQL> drop table tascii;
SQL> drop table tlatin;
SQL> quit;

This originated here:

Inserting Käse into a CHARACTER SET ASCII column
http://tech.groups.yahoo.com/group/firebird-support/message/112680 (archive)

Commits: 64b3a55

====== Test Details ======

2.5.0 also raises error despite ticket's issue "Affects Version/s: 2.5.0"

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA562 [ QA562 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

Test Details: 2.5.0 also raises error despite ticket's issue "Affects Version/s: 2.5.0"

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Test created.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

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

No branches or pull requests

2 participants