1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Fix error message when creating a non-string field with a display

width beyond the maximum. (Bug #6080)
This commit is contained in:
jimw@mysql.com
2005-08-05 17:22:53 -07:00
parent 9959482c95
commit 268a68ad08
7 changed files with 26 additions and 5 deletions

View File

@ -23,3 +23,8 @@ ERROR 42S22: Unknown column 't1.b' in 'order clause'
select count(*),b from t1;
ERROR 42S22: Unknown column 'b' in 'field list'
drop table t1;
create table t1 (a int(256));
ERROR 42000: Display width out of range for column 'a' (max = 255)
set sql_mode='traditional';
create table t1 (a varchar(66000));
ERROR 42000: Column length too big for column 'a' (max = 65535); use BLOB or TEXT instead