summaryrefslogtreecommitdiff
path: root/mysql-test/r/subselect_innodb.result
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2004-01-03 00:12:07 +0200
committerunknown <bell@sanja.is.com.ua>2004-01-03 00:12:07 +0200
commitb21d8b0eff5b2da2f4b565ab630549ede52ed28a (patch)
tree5368d917dca8b3cf091c64b5b199e33ef115d291 /mysql-test/r/subselect_innodb.result
parent3940368293134f3fcce418c8533143ab6f4581ec (diff)
downloadmariadb-git-b21d8b0eff5b2da2f4b565ab630549ede52ed28a.tar.gz
removed droping field->query_id for reinitialization tables for subquery.
(BUG#2089) mysql-test/r/subselect_innodb.result: correct results sql/mysql_priv.h: new parameter for setup_tables() sql/sql_base.cc: new parameter for setup_tables() added to avoid dropping query_id of fields during reinitialization subquery sql/sql_class.cc: layout fixed sql/sql_help.cc: new parameter for setup_tables() sql/sql_insert.cc: new parameter for setup_tables() sql/sql_lex.cc: removed incorrect code sql/sql_load.cc: new parameter for setup_tables() sql/sql_olap.cc: new parameter for setup_tables() sql/sql_prepare.cc: new parameter for setup_tables() sql/sql_select.cc: new parameter for setup_tables() sql/sql_update.cc: new parameter for setup_tables()
Diffstat (limited to 'mysql-test/r/subselect_innodb.result')
-rw-r--r--mysql-test/r/subselect_innodb.result17
1 files changed, 15 insertions, 2 deletions
diff --git a/mysql-test/r/subselect_innodb.result b/mysql-test/r/subselect_innodb.result
index 6729916f1c8..972cbdda38f 100644
--- a/mysql-test/r/subselect_innodb.result
+++ b/mysql-test/r/subselect_innodb.result
@@ -60,6 +60,19 @@ INSERT INTO t2 VALUES (1,1),(2,2),(3,3);
SELECT distinct p1.processor_id, (SELECT y.yod_id FROM t1 p2, t2 y WHERE p2.processor_id = p1.processor_id and p2.processor_id = y.processor_id) FROM t1 p1;
processor_id (SELECT y.yod_id FROM t1 p2, t2 y WHERE p2.processor_id = p1.processor_id and p2.processor_id = y.processor_id)
1 1
-2 1
-3 1
+2 2
+3 3
drop table t1,t2,t3;
+create table t1 (id int not null, value char(255), primary key(id)) engine=innodb;
+create table t2 (id int not null, value char(255)) engine=innodb;
+insert into t1 values (1,'a'),(2,'b');
+insert into t2 values (1,'z'),(2,'x');
+select t2.id,t2.value,(select t1.value from t1 where t1.id=t2.id) from t2;
+id value (select t1.value from t1 where t1.id=t2.id)
+1 z a
+2 x b
+select t2.id,t2.value,(select t1.value from t1 where t1.id=t2.id) from t2;
+id value (select t1.value from t1 where t1.id=t2.id)
+1 z a
+2 x b
+drop table t1,t2;