Issue Details (XML | Word | Printable)

Key: CORE-1331
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Adriano dos Santos Fernandes
Reporter: Milan Babuskov
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Charset transliterations don't work with EXECUTE STATEMENT

Created: 22/Jun/07 07:09 AM   Updated: 29/Dec/07 11:34 AM
Component/s: Charsets/Collation, Engine
Affects Version/s: 1.5.2, 1.5.3, 2.0.0, 1.5.4, 2.0.1, 2.1 Alpha 1, 2.1 Beta 1
Fix Version/s: 2.0.2, 2.1 Beta 2

Time Tracking:
Not Specified

File Attachments: 1. GZip Archive baza.fdb.gz (32 kB)

Issue Links:
Relate
 


 Description  « Hide
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.


 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Pavel Cisar added a comment - 29/Dec/07 11:34 AM
Verified, test added.