summaryrefslogtreecommitdiff
path: root/mysql-test/main/multi_update.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/multi_update.result')
-rw-r--r--mysql-test/main/multi_update.result17
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/main/multi_update.result b/mysql-test/main/multi_update.result
index 4ba5c360538..d792b2828b8 100644
--- a/mysql-test/main/multi_update.result
+++ b/mysql-test/main/multi_update.result
@@ -1081,3 +1081,20 @@ b c
2 0
drop view v1;
drop table t0, t1,t2;
+#
+# MDEV-20515 multi-update tries to position updated table by null reference
+#
+create or replace table t1 (a int);
+insert into t1 values (0), (2);
+create or replace table t2 (b int);
+insert into t2 values (1), (2);
+select * from t1 left join t2 on a = b order by b;
+a b
+0 NULL
+2 2
+update t1 left join t2 on a = b set b= 3 order by b;
+select * from t2;
+b
+1
+3
+drop tables t1, t2;