summaryrefslogtreecommitdiff
path: root/mysql-test/t/multi_update.test
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2003-08-20 15:33:21 +0300
committerunknown <Sinisa@sinisa.nasamreza.org>2003-08-20 15:33:21 +0300
commita89a2995713d6453e015c038da6596264a00175a (patch)
tree8fab9476aeb7182e7dda366725f8e743cd6e3f6b /mysql-test/t/multi_update.test
parenta6ceaf419823fe8c07217423f2187c60ca70eb53 (diff)
downloadmariadb-git-a89a2995713d6453e015c038da6596264a00175a.tar.gz
item_func.h:
Fix for a bug with LEAST() in WHERE clause ha_innodb.cc: Fix for a configure bug multi_update.result, multi_update.test: Fix for the update with NULL's in the result set sql_update.cc: Fix for the update with NULL's in the result set Fix for the update with NULL's in the result set Fix for the update with NULL's in the result set sql/sql_update.cc: Fix for the update with NULL's in the result set Fix for the update with NULL's in the result set Fix for the update with NULL's in the result set mysql-test/t/multi_update.test: Fix for the update with NULL's in the result set mysql-test/r/multi_update.result: Fix for the update with NULL's in the result set sql/ha_innodb.cc: Fix for a configure bug sql/item_func.h: Fix for a bug with LEAST() in WHERE clause
Diffstat (limited to 'mysql-test/t/multi_update.test')
-rw-r--r--mysql-test/t/multi_update.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/multi_update.test b/mysql-test/t/multi_update.test
index 0c7ad6160ee..7aa4e74cec0 100644
--- a/mysql-test/t/multi_update.test
+++ b/mysql-test/t/multi_update.test
@@ -260,3 +260,10 @@ create table t2(Z varchar(15));
insert into t2(Z) select concat(a.a,b.a,c.a,d.a) from t1 as a, t1 as b, t1 as c, t1 as d;
update t2,t3 set Z =param_scenario_costs;
drop table t1,t2,t3;
+create table t1 (a int, b int);
+create table t2 (a int, b int);
+insert into t1 values (1,1),(2,1),(3,1);
+insert into t2 values (1,1), (3,1);
+update t1 left join t2 on t1.a=t2.a set t1.b=2, t2.b=2 where t1.b=1 and t2.b=1 or t2.a is NULL;
+select t1.a, t1.b,t2.a, t2.b from t1 left join t2 on t1.a=t2.a where t1.b=1 and t2.b=1 or t2.a is NULL;
+drop table t1,t2;