Skip to content

Commit fd14e3d

Browse files
committed
merge
2 parents 2c4015f + b7ac3c2 commit fd14e3d

File tree

4 files changed

+42
-1
lines changed

4 files changed

+42
-1
lines changed

mysql-test/collections/default.experimental

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ main.lock_multi_bug38499 # Bug#47448 2009-09-19 alik main.lock_m
1212
main.lock_multi_bug38691 @solaris # Bug#47792 2009-10-02 alik main.lock_multi_bug38691 times out sporadically on Solaris 10
1313
main.log_tables # Bug#47924 2009-10-08 alik main.log_tables times out sporadically
1414
main.plugin # Bug#47146 Linking problem with example plugin when dtrace enabled
15-
main.plugin_load # Bug#47146
1615

1716
rpl.rpl_get_master_version_and_clock* # Bug#49191 2009-12-01 Daogang rpl_get_master_version_and_clock failed on PB2: COM_REGISTER_SLAVE failed
1817
rpl.rpl_heartbeat_basic # BUG#43828 2009-10-22 luis fails sporadically

mysql-test/r/partition_column.result

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,30 @@ partition by range columns (a,b,c)
99
( partition p0 values less than (1, maxvalue, 10),
1010
partition p1 values less than (1, maxvalue, maxvalue));
1111
ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
12+
create table t1 (a varchar(5) character set ucs2 collate ucs2_bin)
13+
partition by range columns (a)
14+
(partition p0 values less than (0x0041));
15+
insert into t1 values (0x00410000);
16+
select hex(a) from t1 where a like 'A_';
17+
hex(a)
18+
00410000
19+
explain partitions select hex(a) from t1 where a like 'A_';
20+
id select_type table partitions type possible_keys key key_len ref rows Extra
21+
1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
22+
alter table t1 remove partitioning;
23+
select hex(a) from t1 where a like 'A_';
24+
hex(a)
25+
00410000
26+
create index a on t1 (a);
27+
select hex(a) from t1 where a like 'A_';
28+
hex(a)
29+
00410000
30+
insert into t1 values ('A_');
31+
select hex(a) from t1;
32+
hex(a)
33+
00410000
34+
0041005F
35+
drop table t1;
1236
create table t1 (a varchar(1) character set latin1 collate latin1_general_ci)
1337
partition by range columns(a)
1438
( partition p0 values less than ('a'),

mysql-test/t/disabled.def

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ kill : Bug#37780 2008-12-03 HHunger need some changes to be
1313
query_cache_28249 : Bug#43861 2009-03-25 main.query_cache_28249 fails sporadicallyr
1414
innodb-autoinc : Bug#49267 2009-12-02 test fails on windows because of different case mode
1515
innodb : Bug#49396 2009-12-03 test fails in embedded mode
16+
plugin_load : Bug#42144 2009-12-21 alik plugin_load fails

mysql-test/t/partition_column.test

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,23 @@ partition by range columns (a,b,c)
2323
( partition p0 values less than (1, maxvalue, 10),
2424
partition p1 values less than (1, maxvalue, maxvalue));
2525

26+
#
27+
# BUG#48737, Search fails with ucs2
28+
#
29+
create table t1 (a varchar(5) character set ucs2 collate ucs2_bin)
30+
partition by range columns (a)
31+
(partition p0 values less than (0x0041));
32+
insert into t1 values (0x00410000);
33+
select hex(a) from t1 where a like 'A_';
34+
explain partitions select hex(a) from t1 where a like 'A_';
35+
alter table t1 remove partitioning;
36+
select hex(a) from t1 where a like 'A_';
37+
create index a on t1 (a);
38+
select hex(a) from t1 where a like 'A_';
39+
insert into t1 values ('A_');
40+
select hex(a) from t1;
41+
drop table t1;
42+
2643
#
2744
# BUG#48161, Delivering too few records using collate syntax with partitions
2845
#

0 commit comments

Comments
 (0)