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
3072df16
Commit
3072df16
authored
Mar 02, 2006
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/usr/home/bar/mysql-5.1-new.b14527
parents
12e0e7c2
abf1fc9b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
0 deletions
+42
-0
mysql-test/r/partition_charset.result
mysql-test/r/partition_charset.result
+18
-0
mysql-test/t/partition_charset.test
mysql-test/t/partition_charset.test
+21
-0
sql/sql_partition.cc
sql/sql_partition.cc
+3
-0
No files found.
mysql-test/r/partition_charset.result
0 → 100644
View file @
3072df16
drop table if exists t1;
set names utf8;
create table t1 (s1 int)
partition by list (s1)
(partition c values in (1),
partition Ç values in (3));
insert into t1 values (1),(3);
select * from t1;
s1
1
3
flush tables;
set names latin1;
select * from t1;
s1
1
3
drop table t1;
mysql-test/t/partition_charset.test
0 → 100644
View file @
3072df16
#
# Test for character set related things in combination
# with the partition storage engine
#
--
source
include
/
have_partition
.
inc
--
disable_warnings
drop
table
if
exists
t1
;
--
enable_warnings
set
names
utf8
;
create
table
t1
(
s1
int
)
partition
by
list
(
s1
)
(
partition
c
values
in
(
1
),
partition
Ç
values
in
(
3
));
insert
into
t1
values
(
1
),(
3
);
select
*
from
t1
;
flush
tables
;
set
names
latin1
;
select
*
from
t1
;
drop
table
t1
;
sql/sql_partition.cc
View file @
3072df16
...
...
@@ -3630,11 +3630,13 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
Item
*
thd_free_list
=
thd
->
free_list
;
bool
result
=
TRUE
;
partition_info
*
part_info
;
CHARSET_INFO
*
old_character_set_client
=
thd
->
variables
.
character_set_client
;
LEX
*
old_lex
=
thd
->
lex
;
LEX
lex
;
DBUG_ENTER
(
"mysql_unpack_partition"
);
thd
->
lex
=
&
lex
;
thd
->
variables
.
character_set_client
=
system_charset_info
;
lex_start
(
thd
,
part_buf
,
part_info_len
);
/*
We need to use the current SELECT_LEX since I need to keep the
...
...
@@ -3760,6 +3762,7 @@ bool mysql_unpack_partition(THD *thd, const uchar *part_buf,
end:
thd
->
free_list
=
thd_free_list
;
thd
->
lex
=
old_lex
;
thd
->
variables
.
character_set_client
=
old_character_set_client
;
DBUG_RETURN
(
result
);
}
...
...
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