You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is raised when INTL_convert_bytes is called from INTL_compare.
The internal buffer used for conversion (NONE -> WIN1251) is (MAX_KEY or 4096) smaller then size of field contents (5000) therefore conversion failed.
We can use HalfStaticArray instead but i don't know why MAX_KEY is used here ?
Also it seems more logical to convert MIN(length1, length2) bytes for comparison.
I think Adriano able to choose the best solution for this case :)
Submitted by: @hvlad
Is related to QA429
create database 'test.fdb' default character set none;
recreate table tab1 (id int, txt varchar(5000));
commit;
insert into tab1 values (1, rpad('', 5000, '1'));
commit;
set names win1251;
connect 'test.fdb';
update tab1 set id = 2 where txt = 'x';
Statement failed, SQLSTATE = 22001
arithmetic exception, numeric overflow, or string truncation
-string right truncation
Commits: 1db35d4 84185f2
The text was updated successfully, but these errors were encountered: