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
5cffeb2b
Commit
5cffeb2b
authored
Feb 21, 2005
by
lars@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#6676: Derivation of user variables should be of derivation "IMPLICIT"
parent
3261bf18
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
1 deletion
+21
-1
mysql-test/r/rpl_charset.result
mysql-test/r/rpl_charset.result
+7
-0
mysql-test/t/rpl_charset.test
mysql-test/t/rpl_charset.test
+13
-0
sql/log_event.cc
sql/log_event.cc
+1
-1
No files found.
mysql-test/r/rpl_charset.result
View file @
5cffeb2b
...
...
@@ -207,3 +207,10 @@ select hex(c1), hex(c2) from t1;
hex(c1) hex(c2)
CDF32C20E7E020F0FBE1E0EBEAF3 CDF32C20E7E020F0FBE1E0EBEAF3
drop table t1;
create table `t1` (
`pk` varchar(10) not null default '',
primary key (`pk`)
) engine=myisam default charset=latin1;
set @p=_latin1 'test';
update t1 set pk='test' where pk=@p;
drop table t1;
mysql-test/t/rpl_charset.test
View file @
5cffeb2b
...
...
@@ -169,3 +169,16 @@ select hex(c1), hex(c2) from t1;
connection
master
;
drop
table
t1
;
sync_slave_with_master
;
#
# BUG#6676: Derivation of variables must be correct on slave
#
connection
master
;
create
table
`t1`
(
`pk`
varchar
(
10
)
not
null
default
''
,
primary
key
(
`pk`
)
)
engine
=
myisam
default
charset
=
latin1
;
set
@
p
=
_latin1
'test'
;
update
t1
set
pk
=
'test'
where
pk
=@
p
;
drop
table
t1
;
sync_slave_with_master
;
sql/log_event.cc
View file @
5cffeb2b
...
...
@@ -2528,7 +2528,7 @@ int User_var_log_event::exec_event(struct st_relay_log_info* rli)
0 can be passed as last argument (reference on item)
*/
e
.
fix_fields
(
thd
,
0
,
0
);
e
.
update_hash
(
val
,
val_len
,
type
,
charset
,
DERIVATION_
NONE
);
e
.
update_hash
(
val
,
val_len
,
type
,
charset
,
DERIVATION_
IMPLICIT
);
free_root
(
thd
->
mem_root
,
0
);
rli
->
inc_event_relay_log_pos
(
get_event_len
());
...
...
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