diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-03-19 16:04:59 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-03-19 16:04:59 +0200 |
commit | 117291db8b35ddb4cd8c89ee4d8de888160b7163 (patch) | |
tree | 05041fcbc5a4c5c14531d148505216cb88add73c /mysql-test/main/update.result | |
parent | 26e5bff00318272c717561e7b980036df3332d7b (diff) | |
parent | a77e2668667e46d96c445a4a9a8325b7fe9461b3 (diff) | |
download | mariadb-git-117291db8b35ddb4cd8c89ee4d8de888160b7163.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'mysql-test/main/update.result')
-rw-r--r-- | mysql-test/main/update.result | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/main/update.result b/mysql-test/main/update.result index 73ebb73e313..9e19abc4e9c 100644 --- a/mysql-test/main/update.result +++ b/mysql-test/main/update.result @@ -719,3 +719,16 @@ Handler_read_rnd_deleted 0 Handler_read_rnd_next 0 drop table t1, t2; # End of MariaDB 10.0 tests +# +# MDEV-18945: multi-table update with constant table and +# comparison of date field with integer field +# +CREATE TABLE t1 (i1 int, d1 date , i2 int , d2 date) engine=myisam; +INSERT INTO t1 VALUES (19,'0000-00-00',73,'2008-05-21'); +CREATE TABLE t2 (d1 date , i1 int, i2 int , d2 date) engine=myisam; +INSERT INTO t2 VALUES +('2006-01-12',-102,45,'2023-11-25'),('2034-12-19',-102,45,'2001-11-20'); +UPDATE t1,t2 SET t1.i1 = -39 WHERE t2.d1 <> t1.i1 AND t2.d1 = t1.d2; +ERROR 22007: Incorrect datetime value: '19' for column `test`.`t1`.`i1` at row 1 +DROP TABLE t1,t2; +# End of MariaDB 10.2 tests |