mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
supported possiblity of item substitute (fixed bug) in setup_fields
more efficient reference creation fixed table_name of Field in temporary table mysql-test/r/subselect.result: test of 2 references bugs mysql-test/t/subselect.test: test of 2 references bugs sql/field.h: fixed layout fixed table name of fields of temporary table (derived table) sql/item.cc: more efficient reference creation sql/sql_base.cc: fixed layout supported possiblity of item substitute (fixed bug)
This commit is contained in:
@@ -12,6 +12,7 @@ EXPLAIN SELECT 1 FROM (SELECT 1 as a) HAVING (SELECT a)=1;
|
||||
SELECT 1 FROM (SELECT 1 as a) HAVING (SELECT a)=1;
|
||||
-- error 1054
|
||||
SELECT (SELECT 1), a;
|
||||
SELECT 1 as a FROM (SELECT 1) HAVING (SELECT a)=1;
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
|
||||
create table t1 (a int);
|
||||
create table t2 (a int, b int);
|
||||
@@ -197,3 +198,7 @@ EXPLAIN SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT 1
|
||||
EXPLAIN SELECT MAX(numreponse) FROM t1 WHERE numeropost='1';
|
||||
EXPLAIN SELECT numreponse FROM t1 WHERE numeropost='1' AND numreponse=(SELECT MAX(numreponse) FROM t1 WHERE numeropost='1');
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (a int(1));
|
||||
INSERT INTO t1 VALUES (1);
|
||||
SELECT 1 FROM (SELECT a FROM t1) HAVING (SELECT a)=1;
|
||||
drop table t1;
|
Reference in New Issue
Block a user