~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: brian
  • Date: 2008-06-25 05:29:13 UTC
  • Revision ID: brian@localhost.localdomain-20080625052913-6upwo0jsrl4lnapl
clean slate

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
-- source include/have_debug.inc
 
2
 
1
3
#
2
4
# Bug #28499: crash for grouping query when tmp_table_size is too small
3
5
#
4
 
--disable_warnings
 
6
 
5
7
DROP TABLE IF EXISTS t1;
6
 
--enable_warnings
7
8
 
8
9
CREATE TABLE t1 (
9
 
  a varchar(32) collate utf8_bin NOT NULL,
10
 
  b varchar(32) collate utf8_bin NOT NULL );
 
10
  a varchar(32) character set utf8 collate utf8_bin NOT NULL,
 
11
  b varchar(32) character set utf8 collate utf8_bin NOT NULL )
 
12
ENGINE=MyISAM DEFAULT CHARSET=utf8;
11
13
 
12
14
INSERT INTO t1 VALUES
13
15
  ('AAAAAAAAAA','AAAAAAAAAA'), ('AAAAAAAAAB','AAAAAAAAAB '),
20
22
set tmp_table_size=1024;
21
23
 
22
24
--replace_regex /in table '[^']+'/in table 'tmp_table'/
 
25
--error ER_DUP_KEY
23
26
SELECT MAX(a) FROM t1 GROUP BY a,b;
24
27
 
25
28
set tmp_table_size=default;