summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinisa@sinisa.nasamreza.org <>2003-05-31 18:38:41 +0300
committerSinisa@sinisa.nasamreza.org <>2003-05-31 18:38:41 +0300
commit048731dedb6b2b3a6fb3e36cbca013a13565ad8f (patch)
treed6e346c7033909806289e9a68740c2f44da17924
parent7b0afa3ae7caa053bdccdf5c5e0d36fe0db642e2 (diff)
parent90b6af3da0ede518fbd4e31c5078e0dba53bc67e (diff)
downloadmariadb-git-048731dedb6b2b3a6fb3e36cbca013a13565ad8f.tar.gz
Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.1
into sinisa.nasamreza.org:/mnt/work/mysql-4.1
-rw-r--r--mysql-test/r/derived.result2
-rw-r--r--sql/sql_derived.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/mysql-test/r/derived.result b/mysql-test/r/derived.result
index bfd4c544131..52a54ac7773 100644
--- a/mysql-test/r/derived.result
+++ b/mysql-test/r/derived.result
@@ -137,7 +137,7 @@ a t
explain select count(*) from t1 as tt1, (select * from t1) as tt2;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
-2 DERIVED tt1 index NULL a 4 NULL 10000 Using index
+2 DERIVED tt1 ALL NULL NULL NULL NULL 10000
drop table t1;
SELECT * FROM (SELECT (SELECT * FROM (SELECT 1 as a) as a )) as b;
(SELECT * FROM (SELECT 1 as a) as a )
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index 2bf1a68e504..b2a055b3ee5 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -223,6 +223,8 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit,
/* Add new temporary table to list of open derived tables */
table->next= thd->derived_tables;
thd->derived_tables= table;
+ thd->query_id++;
+ query_id++;
}
exit: