diff options
author | unknown <jimw@mysql.com> | 2005-07-19 19:59:34 -0700 |
---|---|---|
committer | unknown <jimw@mysql.com> | 2005-07-19 19:59:34 -0700 |
commit | baad44b9e1e8dbcb2f90bde5983c2683263c7b30 (patch) | |
tree | 3a657be8688ef67ef02e0c687d61bb47bec6fe2f /mysql-test/t/strict.test | |
parent | 8e845dbad67769bf929e27eb4fcb82e9427c729a (diff) | |
parent | 5958f22a622bdf62b0a426b4184c20f4c962a7e2 (diff) | |
download | mariadb-git-baad44b9e1e8dbcb2f90bde5983c2683263c7b30.tar.gz |
Merge mysql.com:/home/jimw/my/mysql-5.0-5906
into mysql.com:/home/jimw/my/mysql-5.0-clean
libmysql/libmysql.c:
Auto merged
mysql-test/r/ps_2myisam.result:
Auto merged
mysql-test/r/ps_3innodb.result:
Auto merged
mysql-test/r/ps_4heap.result:
Auto merged
mysql-test/r/ps_5merge.result:
Auto merged
mysql-test/r/ps_6bdb.result:
Auto merged
mysql-test/r/ps_7ndb.result:
Auto merged
sql/field.cc:
Auto merged
mysql-test/r/strict.result:
Resolve conflict
mysql-test/t/strict.test:
Resolve conflict
Diffstat (limited to 'mysql-test/t/strict.test')
-rw-r--r-- | mysql-test/t/strict.test | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/strict.test b/mysql-test/t/strict.test index 6ac88e4d629..71b57424e75 100644 --- a/mysql-test/t/strict.test +++ b/mysql-test/t/strict.test @@ -1103,3 +1103,18 @@ create table t1(a int, b date not null); alter table t1 modify a bigint unsigned not null; show create table t1; drop table t1; + +# +# Bug #5906: handle invalid date due to conversion +# +set @@sql_mode='traditional'; +create table t1 (d date); +--error 1292 +insert into t1 values ('2000-10-00'); +--error 1292 +insert into t1 values (1000); +insert into t1 values ('2000-10-01'); +--error 1292 +update t1 set d = 1100; +select * from t1; +drop table t1; |