~vkolesnikov/pbxt/pbxt-preload-test-bug

« back to all changes in this revision

Viewing changes to pbxt/mysql-test-update/mysql-test/t/partition_hash.test

  • Committer: paul-mccullagh
  • Date: 2008-03-10 11:36:34 UTC
  • Revision ID: paul-mccullagh-417ebf175a9c8ee6e5b3777d9e2398e1fb197391
Implemented full durability

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
--enable_warnings
11
11
 
12
12
#
13
 
# BUG 18198: Partition functions handling
14
 
#
15
 
create table t1 (a varchar(10) charset latin1 collate latin1_bin)
16
 
partition by hash(length(a))
17
 
partitions 10;
18
 
insert into t1 values (''),(' '),('a'),('a '),('a  ');
19
 
explain partitions select * from t1 where a='a ';
20
 
explain partitions select * from t1 where a='a';
21
 
explain partitions select * from t1 where a='a ' OR a='a';
22
 
drop table t1;
23
 
 
24
 
#
25
13
# More partition pruning tests, especially on interval walking
26
14
#
27
15
create table t1 (a int unsigned)
129
117
#
130
118
# BUG# 14524 Partitions: crash if blackhole
131
119
#
 
120
# Disable warnings to allow this test case to run without 
 
121
# the Blackhole storage engine.
 
122
--disable_warnings
132
123
CREATE TABLE t1 (s1 int) ENGINE=BLACKHOLE PARTITION BY HASH (s1);
 
124
--enable_warnings
 
125
--error 0,ER_BINLOG_LOGGING_IMPOSSIBLE
133
126
INSERT INTO t1 VALUES (0);
134
127
DROP TABLE t1;
135
128