diff options
author | unknown <lars@mysql.com> | 2005-02-22 14:17:17 +0100 |
---|---|---|
committer | unknown <lars@mysql.com> | 2005-02-22 14:17:17 +0100 |
commit | 100f79260259603d1a9f1cb9e1c052217f828dc2 (patch) | |
tree | 978f6540ee71b40704768a5d2e506cfbeeb71922 /mysql-test | |
parent | d6a53e0cfcc4c29a33cec24c88fa020da9d7f6fe (diff) | |
parent | 2131efb1f0e89035561c5803973abb70f7be0e63 (diff) | |
download | mariadb-git-100f79260259603d1a9f1cb9e1c052217f828dc2.tar.gz |
Merge mysql.com:/home/bkroot/mysql-4.1 into mysql.com:/home/bk/b6676-4.1
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/rpl_charset.result | 7 | ||||
-rw-r--r-- | mysql-test/t/rpl_charset.test | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/r/rpl_charset.result b/mysql-test/r/rpl_charset.result index cab41344238..292cfb19175 100644 --- a/mysql-test/r/rpl_charset.result +++ b/mysql-test/r/rpl_charset.result @@ -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; diff --git a/mysql-test/t/rpl_charset.test b/mysql-test/t/rpl_charset.test index 68036ae49f1..3f7eabfa434 100644 --- a/mysql-test/t/rpl_charset.test +++ b/mysql-test/t/rpl_charset.test @@ -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; |