Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a96c22fe
Commit
a96c22fe
authored
Dec 21, 2009
by
Mattias Jonsson
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
a67056d1
4309b204
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
0 deletions
+41
-0
mysql-test/r/partition_column.result
mysql-test/r/partition_column.result
+24
-0
mysql-test/t/partition_column.test
mysql-test/t/partition_column.test
+17
-0
No files found.
mysql-test/r/partition_column.result
View file @
a96c22fe
...
@@ -9,6 +9,30 @@ partition by range columns (a,b,c)
...
@@ -9,6 +9,30 @@ partition by range columns (a,b,c)
( partition p0 values less than (1, maxvalue, 10),
( partition p0 values less than (1, maxvalue, 10),
partition p1 values less than (1, maxvalue, maxvalue));
partition p1 values less than (1, maxvalue, maxvalue));
ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
ERROR HY000: VALUES LESS THAN value must be strictly increasing for each partition
create table t1 (a varchar(5) character set ucs2 collate ucs2_bin)
partition by range columns (a)
(partition p0 values less than (0x0041));
insert into t1 values (0x00410000);
select hex(a) from t1 where a like 'A_';
hex(a)
00410000
explain partitions select hex(a) from t1 where a like 'A_';
id select_type table partitions type possible_keys key key_len ref rows Extra
1 SIMPLE t1 p0 system NULL NULL NULL NULL 1
alter table t1 remove partitioning;
select hex(a) from t1 where a like 'A_';
hex(a)
00410000
create index a on t1 (a);
select hex(a) from t1 where a like 'A_';
hex(a)
00410000
insert into t1 values ('A_');
select hex(a) from t1;
hex(a)
00410000
0041005F
drop table t1;
create table t1 (a varchar(1) character set latin1 collate latin1_general_ci)
create table t1 (a varchar(1) character set latin1 collate latin1_general_ci)
partition by range columns(a)
partition by range columns(a)
( partition p0 values less than ('a'),
( partition p0 values less than ('a'),
...
...
mysql-test/t/partition_column.test
View file @
a96c22fe
...
@@ -23,6 +23,23 @@ partition by range columns (a,b,c)
...
@@ -23,6 +23,23 @@ partition by range columns (a,b,c)
(
partition
p0
values
less
than
(
1
,
maxvalue
,
10
),
(
partition
p0
values
less
than
(
1
,
maxvalue
,
10
),
partition
p1
values
less
than
(
1
,
maxvalue
,
maxvalue
));
partition
p1
values
less
than
(
1
,
maxvalue
,
maxvalue
));
#
# BUG#48737, Search fails with ucs2
#
create
table
t1
(
a
varchar
(
5
)
character
set
ucs2
collate
ucs2_bin
)
partition
by
range
columns
(
a
)
(
partition
p0
values
less
than
(
0x0041
));
insert
into
t1
values
(
0x00410000
);
select
hex
(
a
)
from
t1
where
a
like
'A_'
;
explain
partitions
select
hex
(
a
)
from
t1
where
a
like
'A_'
;
alter
table
t1
remove
partitioning
;
select
hex
(
a
)
from
t1
where
a
like
'A_'
;
create
index
a
on
t1
(
a
);
select
hex
(
a
)
from
t1
where
a
like
'A_'
;
insert
into
t1
values
(
'A_'
);
select
hex
(
a
)
from
t1
;
drop
table
t1
;
#
#
# BUG#48161, Delivering too few records using collate syntax with partitions
# BUG#48161, Delivering too few records using collate syntax with partitions
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment