~ubuntu-branches/ubuntu/trusty/mariadb-5.5/trusty-proposed

« back to all changes in this revision

Viewing changes to mysql-test/t/mrr_derived_crash_4610.test

  • Committer: Package Import Robot
  • Author(s): Otto Kekäläinen
  • Date: 2013-12-22 10:27:05 UTC
  • Revision ID: package-import@ubuntu.com-20131222102705-mndw7s12mz0szrcn
Tags: upstream-5.5.32
Import upstream version 5.5.32

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# MDEV-4610 SQL query crashes MariaDB with derived_with_keys
 
3
#
 
4
--source include/have_innodb.inc
 
5
create table t1 (f1 char(4) primary key) engine=innodb charset=utf8 ;
 
6
insert into t1 values ('aaaa');
 
7
create table t2 (f2 text, f3 char(4) not null) engine=innodb charset=utf8 ;
 
8
create table t3 (id int not null) engine=innodb charset=utf8 ;
 
9
create table t4 (val int not null) engine=innodb charset=utf8;
 
10
explain select 1 from
 
11
  (select f2, f3, val, count(id) from t4 join t2 left join t3 on 0) top
 
12
  join t1 on f1 = f3 where f3 = 'aaaa' order by val;
 
13
select 1 from
 
14
  (select f2, f3, val, count(id) from t4 join t2 left join t3 on 0) top
 
15
  join t1 on f1 = f3 where f3 = 'aaaa' order by val;
 
16
drop table t1, t2, t3, t4;