summaryrefslogtreecommitdiff
path: root/mysql-test/t/update.test
diff options
context:
space:
mode:
authorunknown <Sinisa@sinisa.nasamreza.org>2002-12-25 15:07:36 +0200
committerunknown <Sinisa@sinisa.nasamreza.org>2002-12-25 15:07:36 +0200
commit1e687d196ef059ff82542d1f0a71111c8a0b257a (patch)
tree7d7d23defccb62f9a5cf7a6a5a9ddc253479e2aa /mysql-test/t/update.test
parentf46decc78025403ee118f1d30f6bed45bb854afb (diff)
downloadmariadb-git-1e687d196ef059ff82542d1f0a71111c8a0b257a.tar.gz
bug fixes and tests ...
mysql-test/r/update.result: Test for update with subselect and derived table ... mysql-test/t/update.test: Test for update with subselect and derived table ... sql/sql_union.cc: Fix for usage of ORDER BY ... and / or LIMIT .... without braces
Diffstat (limited to 'mysql-test/t/update.test')
-rw-r--r--mysql-test/t/update.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/t/update.test b/mysql-test/t/update.test
index 5cbbd2a350e..24620982cda 100644
--- a/mysql-test/t/update.test
+++ b/mysql-test/t/update.test
@@ -85,5 +85,8 @@ create table t1 (a int not null, b int not null);
insert into t1 values (1,1),(1,2),(1,3);
update t1 set b=4 where a=1 order by b asc limit 1;
update t1 set b=4 where a=1 order by b desc limit 1;
+create table t2 (a int not null, b int not null);
+insert into t2 values (1,1),(1,2),(1,3);
select * from t1;
-drop table t1;
+update t1 set b=(select distinct 1 from (select * from t2) a);
+drop table t1,t2;