summaryrefslogtreecommitdiff
path: root/mysql-test/t/update.test
diff options
context:
space:
mode:
authorevgen@moonbone.local <>2005-12-02 19:42:14 +0300
committerevgen@moonbone.local <>2005-12-02 19:42:14 +0300
commit00b902b0651176ea457b608b3c8b2cba71145059 (patch)
treea6023835c30a5415c611dcc261d8e62e186230a2 /mysql-test/t/update.test
parent035c24beeb8ecbd061c4ffdca0ab424251b8c77f (diff)
parent151350536c231844ab10d5c07227c12823f4737a (diff)
downloadmariadb-git-00b902b0651176ea457b608b3c8b2cba71145059.tar.gz
Manually merged
Diffstat (limited to 'mysql-test/t/update.test')
-rw-r--r--mysql-test/t/update.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/t/update.test b/mysql-test/t/update.test
index 2a151f0dd38..d0496b48c7a 100644
--- a/mysql-test/t/update.test
+++ b/mysql-test/t/update.test
@@ -270,4 +270,21 @@ insert into t1 values('2000-01-01'),('0000-00-00');
update t1 set f1='2002-02-02' where f1 is null;
select * from t1;
drop table t1;
+
+#
+# Bug#15028 Multitable update returns different numbers of matched rows
+# depending on table order
+create table t1 (f1 int);
+create table t2 (f2 int);
+insert into t1 values(1),(2);
+insert into t2 values(1),(1);
+--enable_info
+update t1,t2 set f1=3,f2=3 where f1=f2 and f1=1;
+--disable_info
+update t2 set f2=1;
+update t1 set f1=1 where f1=3;
+--enable_info
+update t2,t1 set f1=3,f2=3 where f1=f2 and f1=1;
+--disable_info
+drop table t1,t2;
# End of 4.1 tests