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
6ce3a06f
Commit
6ce3a06f
authored
Nov 02, 2009
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test case for UTF8 strings in partition constants
parent
1f94bbc7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
mysql-test/r/partition_column.result
mysql-test/r/partition_column.result
+9
-0
mysql-test/t/partition_column.test
mysql-test/t/partition_column.test
+2
-0
No files found.
mysql-test/r/partition_column.result
View file @
6ce3a06f
...
@@ -28,6 +28,15 @@ create table t1 (a varchar(2) character set ucs2)
...
@@ -28,6 +28,15 @@ create table t1 (a varchar(2) character set ucs2)
partition by list columns (a)
partition by list columns (a)
(partition p0 values in (0x2020),
(partition p0 values in (0x2020),
partition p1 values in (''));
partition p1 values in (''));
set names utf8;
show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` varchar(2) CHARACTER SET ucs2 DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST COLUMNS(a)
(PARTITION p0 VALUES IN ('†') ENGINE = MyISAM,
PARTITION p1 VALUES IN ('') ENGINE = MyISAM) */
insert into t1 values ('');
insert into t1 values ('');
insert into t1 values (_ucs2 0x2020);
insert into t1 values (_ucs2 0x2020);
drop table t1;
drop table t1;
...
...
mysql-test/t/partition_column.test
View file @
6ce3a06f
...
@@ -47,6 +47,8 @@ create table t1 (a varchar(2) character set ucs2)
...
@@ -47,6 +47,8 @@ create table t1 (a varchar(2) character set ucs2)
partition
by
list
columns
(
a
)
partition
by
list
columns
(
a
)
(
partition
p0
values
in
(
0x2020
),
(
partition
p0
values
in
(
0x2020
),
partition
p1
values
in
(
''
));
partition
p1
values
in
(
''
));
set
names
utf8
;
show
create
table
t1
;
insert
into
t1
values
(
''
);
insert
into
t1
values
(
''
);
insert
into
t1
values
(
_ucs2
0x2020
);
insert
into
t1
values
(
_ucs2
0x2020
);
drop
table
t1
;
drop
table
t1
;
...
...
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