diff options
author | unknown <bell@sanja.is.com.ua> | 2002-11-23 19:20:04 +0200 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2002-11-23 19:20:04 +0200 |
commit | 96b338f7dfd123e93d0c3bc31dca1e7c10db5c77 (patch) | |
tree | 9fe88aa9a632d93ab216559d9912707472f72580 /mysql-test/r | |
parent | f94e6e7d8e0b9310a4590f87888b1cfb6d5641ff (diff) | |
parent | c81300691327066b954fb34116f6d1f88e0d49d6 (diff) | |
download | mariadb-git-96b338f7dfd123e93d0c3bc31dca1e7c10db5c77.tar.gz |
merging
sql/mysql_priv.h:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_yacc.yy:
Auto merged
Diffstat (limited to 'mysql-test/r')
-rw-r--r-- | mysql-test/r/subselect.result | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/r/subselect.result b/mysql-test/r/subselect.result index c7862440bf1..8e8e404638e 100644 --- a/mysql-test/r/subselect.result +++ b/mysql-test/r/subselect.result @@ -289,3 +289,19 @@ id select_type table type possible_keys key key_len ref rows Extra 1 PRIMARY threadhardwarefr7 const PRIMARY,numreponse PRIMARY 7 const,const 1 2 SUBSELECT Select tables optimized away drop table if exists threadhardwarefrtest7; +create table t1 (a int NOT NULL, b int, primary key (a)); +create table t2 (a int NOT NULL, b int, primary key (a)); +insert into t1 values (0, 10),(1, 11),(2, 12); +insert into t2 values (1, 21),(2, 22),(3, 23); +select * from t1; +a b +0 10 +1 11 +2 12 +update t1 set b= (select b from t2 where t1.a = t2.a); +select * from t1; +a b +0 NULL +1 21 +2 22 +drop table t1, t2; |