mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
many bug fixes
mysql-test/t/subselect.test: fixing problems with aliases being forced on derived tables sql/item_func.cc: Fixing a bug that caused MySQL to crash on SELECT ...GROUP BY func(feilds) sql/item_sum.cc: Making us compatible with ISO C++ paragrah 7.1.9.4 sql/item_sum.h: Making us compatible with ISO C++ paragrah 7.1.9.4 sql/sql_derived.cc: Fixing two more bugs in derived tables. One in EXPLAIN and another causing wrong result in opt_sum_query() sql/sql_yacc.yy: Making possible INSERT from SELECT list_of_constants
This commit is contained in:
@ -15,12 +15,11 @@ SELECT (SELECT 1), a;
|
||||
SELECT 1 as a FROM (SELECT 1) as b HAVING (SELECT a)=1;
|
||||
-- error 1054
|
||||
SELECT 1 FROM (SELECT (SELECT a) b) c;
|
||||
SELECT 1 FROM (SELECT (SELECT a));
|
||||
SELECT * FROM (SELECT 1 as id) WHERE id IN (SELECT * FROM (SELECT 1 as id) ORDER BY id LIMIT 1);
|
||||
SELECT * FROM (SELECT 1 as id) b WHERE id IN (SELECT * FROM (SELECT 1 as id) c ORDER BY id LIMIT 1);
|
||||
-- error 1239
|
||||
SELECT * FROM (SELECT 1) WHERE 1 IN (SELECT 1,1);
|
||||
SELECT * FROM (SELECT 1)a WHERE 1 IN (SELECT 1,1);
|
||||
SELECT 1 IN (SELECT 1);
|
||||
SELECT 1 FROM (SELECT 1 as a) WHERE 1 IN (SELECT (SELECT a));
|
||||
SELECT 1 FROM (SELECT 1 as a) b WHERE 1 IN (SELECT (SELECT a));
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8;
|
||||
create table t1 (a int);
|
||||
create table t2 (a int, b int);
|
||||
|
Reference in New Issue
Block a user