mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
5.5 merge
This commit is contained in:
@ -261,6 +261,9 @@ desc,b desc;
|
||||
explain select * from t1 where a = 2 and b > 0 order by a desc,b desc;
|
||||
explain select * from t1 where a = 2 and b < 2 order by a desc,b desc;
|
||||
explain select * from t1 where a = 1 order by b desc;
|
||||
explain select * from t1 where a = 2 and b > 0 order by a desc,b desc,b,a;
|
||||
explain select * from t1 where a = 2 and b < 2 order by a desc,a,b desc,a,b;
|
||||
|
||||
select * from t1 where a = 1 order by b desc;
|
||||
#
|
||||
# Test things when we don't have NULL keys
|
||||
@ -1913,6 +1916,35 @@ SELECT t1.a FROM t1 LEFT JOIN t2 ON t1.a=t2.a ORDER BY t1.a LIMIT 100;
|
||||
|
||||
DROP TABLE t1,t2;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-4974 memory leak in 5.5.32-MariaDB-1~wheezy-log
|
||||
--echo #
|
||||
set sort_buffer_size=default;
|
||||
set max_sort_length=default;
|
||||
create table t1(a int);
|
||||
insert into t1 values (0),(1),(2),(3),(4),(5),(6),(7),(8),(9);
|
||||
|
||||
create table t2 (b int,
|
||||
col1 varchar(255),
|
||||
col2 varchar(255)
|
||||
) character set utf8;
|
||||
|
||||
insert into t2 select
|
||||
A.a+10*B.a,
|
||||
concat('wow-wow-col1-value-', A.a+10*B.a+100*C.a),
|
||||
concat('wow-wow-col2-value-', A.a+10*B.a+100*C.a)
|
||||
from
|
||||
t1 A, t1 B, t1 C where C.a < 8;
|
||||
|
||||
create table t3 as
|
||||
select distinct A.col1 as XX, B.col1 as YY
|
||||
from
|
||||
t2 A, t2 B
|
||||
where A.b = B.b
|
||||
order by A.col2, B.col2 limit 10, 1000000;
|
||||
|
||||
drop table t1,t2,t3;
|
||||
|
||||
--echo End of 5.5 tests
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user