~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--source include/have_debug.inc
 
2
 
 
3
#
 
4
# Bug #37627: Killing query with sum(exists()) or avg(exists()) reproducibly
 
5
# crashes server
 
6
#
 
7
 
 
8
CREATE TABLE t1(id INT);
 
9
INSERT INTO t1 VALUES (1),(2),(3),(4);
 
10
INSERT INTO t1 SELECT a.id FROM t1 a,t1 b,t1 c,t1 d;
 
11
# Setup the mysqld to crash at certain point
 
12
SET SESSION debug="d,subselect_exec_fail";
 
13
SELECT SUM(EXISTS(SELECT RAND() FROM t1)) FROM t1;
 
14
SELECT REVERSE(EXISTS(SELECT RAND() FROM t1));
 
15
SET SESSION debug=DEFAULT;
 
16
DROP TABLE t1;