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

Charset transliterations don't work with EXECUTE STATEMENT [CORE1331] #1750

Closed
firebird-automations opened this issue Jun 22, 2007 · 13 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Milan Babuskov (babuskov)

Is related to QA169

Attachments:
baza.fdb.gz

I have a database where all columns are UTF8. I have data in it in Russian Cyrillic characters. The client connects using WIN1251 charset and reads/writes values without any problems. However, when it tries to do the same with EXECUTE STATEMENT it gets error message about transliteration.

The sample database file (with one table and two rows) is attached.

Here are 3 queries. When connected with charset UTF8, all queries work. When connected with WIN1251, first two queries work, but the third one fails:

1. This works:

select opis from T1;

2. This works:

set term !! ;
execute block returns ( opis varchar(100) ) as
BEGIN
for select opis from t1 into :opis
do SUSPEND;
END!!

3. This fails:

set term !! ;
execute block returns ( opis varchar(100) ) as
BEGIN
for execute statement 'select opis from t1'
into :opis
do SUSPEND;
END!!

With error:

arithmetic exception, numeric overflow, or string truncation Cannot
transliterate character between character sets.

Commits: 3cb8f94 81f1f81

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Version: 2.1 Alpha 1 [ 10150 ]

Version: 1.5.4 [ 10100 ]

Version: 1.5.3 [ 10028 ]

Version: 1.5.2 [ 10027 ]

Version: 2.1 Beta 1 [ 10141 ]

Version: 2.0.2 [ 10130 ]

Fix Version: 2.1 Beta 2 [ 10190 ]

Component: Engine [ 10000 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Attachment: baza.fdb.gz [ 10430 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

description: I have a database where all columns are UTF8. I have data in it in Russian Cyrillic characters. The client connects using WIN1251 charset and reads/writes values without any problems. However, when it tries to do the same with EXECUTE STATEMENT it gets error message about transliteration.

The sample database file (with one table and two rows) can be found at:
http://www.flamerobin.org/baza.fdb [640kB]

or gzipped:
http://www.flamerobin.org/baza.fdb.gz

Here are 3 queries. When connected with charset UTF8, all queries work. When connected with WIN1251, first two queries work, but the third one fails:

1. This works:

select opis from T1;

2. This works:

set term !! ;
execute block returns ( opis varchar(100) ) as
BEGIN
for select opis from t1 into :opis
do SUSPEND;
END!!

3. This fails:

set term !! ;
execute block returns ( opis varchar(100) ) as
BEGIN
for execute statement 'select opis from t1'
into :opis
do SUSPEND;
END!!

With error:

arithmetic exception, numeric overflow, or string truncation Cannot
transliterate character between character sets.

=>

I have a database where all columns are UTF8. I have data in it in Russian Cyrillic characters. The client connects using WIN1251 charset and reads/writes values without any problems. However, when it tries to do the same with EXECUTE STATEMENT it gets error message about transliteration.

The sample database file (with one table and two rows) is attached.

Here are 3 queries. When connected with charset UTF8, all queries work. When connected with WIN1251, first two queries work, but the third one fails:

1. This works:

select opis from T1;

2. This works:

set term !! ;
execute block returns ( opis varchar(100) ) as
BEGIN
for select opis from t1 into :opis
do SUSPEND;
END!!

3. This fails:

set term !! ;
execute block returns ( opis varchar(100) ) as
BEGIN
for execute statement 'select opis from t1'
into :opis
do SUSPEND;
END!!

With error:

arithmetic exception, numeric overflow, or string truncation Cannot
transliterate character between character sets.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

Fix Version: 2.0.2 [ 10130 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA169 [ QA169 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Version: 2.0.2 [ 10130 ] =>

@firebird-automations
Copy link
Collaborator Author

Commented by: @pcisar

Verified, test added.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 12420 ] => Firebird [ 14912 ]

@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