diff options
author | bar@mysql.com/bar.intranet.mysql.r18.ru <> | 2006-10-30 10:14:03 +0400 |
---|---|---|
committer | bar@mysql.com/bar.intranet.mysql.r18.ru <> | 2006-10-30 10:14:03 +0400 |
commit | 0e3a1eece7289c56bb653f25523d4518ba694452 (patch) | |
tree | 56d83c3d4412f22521f650d31f0aad70abfa1ade /mysql-test/include/strict_autoinc.inc | |
parent | bbf84d6b9ee97076b7b99c6a2b8134880aafffe7 (diff) | |
download | mariadb-git-0e3a1eece7289c56bb653f25523d4518ba694452.tar.gz |
Bug#18908: ERROR 1406 (22001): Data too long for column :: using utf8
Problem: Too confusing error message when cannot convert
between string and column character sets on INSERT and UPDATE.
Fix: producing a better error message, instead of "Data too long"
in such cases
Additional changes: Adding "DROP TABLE IF EXISTS" into several
tests to be safe against failures in previous tests.
Diffstat (limited to 'mysql-test/include/strict_autoinc.inc')
-rw-r--r-- | mysql-test/include/strict_autoinc.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysql-test/include/strict_autoinc.inc b/mysql-test/include/strict_autoinc.inc index 6960440f3a7..823efcc2040 100644 --- a/mysql-test/include/strict_autoinc.inc +++ b/mysql-test/include/strict_autoinc.inc @@ -2,6 +2,10 @@ # Test for strict-mode autoincrement # +--disable_warnings +drop table if exists t1; +--enable_warnings + set @org_mode=@@sql_mode; eval create table t1 ( |