~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/small_tmp_table.test

  • Committer: Daniel Nichter
  • Date: 2011-10-23 16:01:37 UTC
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: daniel@percona.com-20111023160137-7ac3blgz8z4tf8za
Add Administration Getting Started and Logging.  Capitalize SQL clause keywords.

Show diffs side-by-side

added added

removed removed

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