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
recreate table test(nm varchar(1) character set win1251 default 'QWERTYUIOP' not null);
Statement failed, SQLSTATE = 22001
arithmetic exception, numeric overflow, or string truncation
-string right truncation
-expected length 1, actual 10
/* 10 is OK, this is number of characters in the default string */
recreate table test(nm varchar(1) character set utf8 default 'QWERTYUIOP' not null);
Statement failed, SQLSTATE = 22001
arithmetic exception, numeric overflow, or string truncation
-string right truncation
-expected length 1, actual 4
/* value 4 is wrong and is issued regardless of default string length */
Checked on: WI-V3.0.7.33372; WI-V4.0.0.2225
(ticket is created after discussion with Adriano; perhaps similar problem already was described in some another ticket)
Submitted by: @pavel-zotov
Is related to CORE6419
recreate table test(nm varchar(1) character set win1251 default 'QWERTYUIOP' not null);
Statement failed, SQLSTATE = 22001
arithmetic exception, numeric overflow, or string truncation
-string right truncation
-expected length 1, actual 10
/* 10 is OK, this is number of characters in the default string */
recreate table test(nm varchar(1) character set utf8 default 'QWERTYUIOP' not null);
Statement failed, SQLSTATE = 22001
arithmetic exception, numeric overflow, or string truncation
-string right truncation
-expected length 1, actual 4
/* value 4 is wrong and is issued regardless of default string length */
Checked on: WI-V3.0.7.33372; WI-V4.0.0.2225
(ticket is created after discussion with Adriano; perhaps similar problem already was described in some another ticket)
Commits: 0174bda
The text was updated successfully, but these errors were encountered: