summaryrefslogtreecommitdiff
path: root/mysql-test/t/errors.test
diff options
context:
space:
mode:
authorunknown <jimw@mysql.com>2005-08-05 17:22:53 -0700
committerunknown <jimw@mysql.com>2005-08-05 17:22:53 -0700
commitc62a594200b934b546f4f2200345165d109bf189 (patch)
tree5d14f8a9c4945dd61759c95d59bbdd4d5df96fb4 /mysql-test/t/errors.test
parentd17c9b06926aaba7af4d4cae2e7914fd9db5ee9d (diff)
downloadmariadb-git-c62a594200b934b546f4f2200345165d109bf189.tar.gz
Fix error message when creating a non-string field with a display
width beyond the maximum. (Bug #6080) mysql-test/r/errors.result: Update results mysql-test/r/type_bit.result: Update results mysql-test/r/type_bit_innodb.result: Update results mysql-test/t/errors.test: Add new regression test mysql-test/t/type_bit_innodb.test: Update error code in test sql/share/errmsg.txt: Add new error message sql/sql_parse.cc: Display more appropriate error message for column creation that fails due to a non-string field with a display width that is too big.
Diffstat (limited to 'mysql-test/t/errors.test')
-rw-r--r--mysql-test/t/errors.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/errors.test b/mysql-test/t/errors.test
index 93668ffdd3d..f7913ab402c 100644
--- a/mysql-test/t/errors.test
+++ b/mysql-test/t/errors.test
@@ -31,3 +31,14 @@ select count(*),b from t1;
drop table t1;
# End of 4.1 tests
+
+#
+# Bug #6080: Error message for a field with a display width that is too long
+#
+--error 1438
+create table t1 (a int(256));
+set sql_mode='traditional';
+--error 1074
+create table t1 (a varchar(66000));
+
+# End of 5.0 tests