Loading mysql-test/r/ctype_utf8.result +5 −0 Original line number Diff line number Diff line Loading @@ -1126,3 +1126,8 @@ a i い drop table t1,t2; set names 'latin1'; create table t1 (a varchar(255)) default charset=utf8; select * from t1 where find_in_set('-1', a); a drop table t1; mysql-test/r/rpl_multi_update2.result +13 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ reset master; reset slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; start slave; drop table if exists t1,t2; CREATE TABLE t1 ( a int unsigned not null auto_increment primary key, b int unsigned Loading Loading @@ -40,3 +41,15 @@ SELECT * FROM t2 ORDER BY a; a b 1 0 2 1 drop table t1,t2; reset master; CREATE TABLE t1 ( a INT ); INSERT INTO t1 VALUES (0); UPDATE t1, (SELECT 3 as b) AS x SET t1.a = x.b; select * from t1; a 3 select * from t1; a 3 drop table t1; mysql-test/t/ctype_utf8.test +8 −0 Original line number Diff line number Diff line Loading @@ -851,6 +851,14 @@ insert into t1 values (_utf8 0x5b); select hex(a) from t1; drop table t1; # # Bug#13751 find_in_set: Illegal mix of collations # set names 'latin1'; create table t1 (a varchar(255)) default charset=utf8; select * from t1 where find_in_set('-1', a); drop table t1; # End of 4.1 tests # Loading mysql-test/t/rpl_multi_update2.test +27 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,10 @@ source include/master-slave.inc; --disable_warnings drop table if exists t1,t2; --enable_warnings CREATE TABLE t1 ( a int unsigned not null auto_increment primary key, b int unsigned Loading Loading @@ -32,4 +36,27 @@ sync_with_master; SELECT * FROM t1 ORDER BY a; SELECT * FROM t2 ORDER BY a; connection master; drop table t1,t2; sync_slave_with_master; # # BUG#13236 multi-update with subquery & --replicate-ignore-table # reset master; connection master; CREATE TABLE t1 ( a INT ); INSERT INTO t1 VALUES (0); UPDATE t1, (SELECT 3 as b) AS x SET t1.a = x.b; select * from t1; sync_slave_with_master; connection slave; select * from t1; connection master; drop table t1; sync_slave_with_master; # End of 4.1 tests sql/item_func.cc +1 −1 Original line number Diff line number Diff line Loading @@ -2351,7 +2351,7 @@ void Item_func_find_in_set::fix_length_and_dec() } } } agg_arg_collations_for_comparison(cmp_collation, args, 2); agg_arg_charsets(cmp_collation, args, 2, MY_COLL_CMP_CONV); } static const char separator=','; Loading Loading
mysql-test/r/ctype_utf8.result +5 −0 Original line number Diff line number Diff line Loading @@ -1126,3 +1126,8 @@ a i い drop table t1,t2; set names 'latin1'; create table t1 (a varchar(255)) default charset=utf8; select * from t1 where find_in_set('-1', a); a drop table t1;
mysql-test/r/rpl_multi_update2.result +13 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,7 @@ reset master; reset slave; drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9; start slave; drop table if exists t1,t2; CREATE TABLE t1 ( a int unsigned not null auto_increment primary key, b int unsigned Loading Loading @@ -40,3 +41,15 @@ SELECT * FROM t2 ORDER BY a; a b 1 0 2 1 drop table t1,t2; reset master; CREATE TABLE t1 ( a INT ); INSERT INTO t1 VALUES (0); UPDATE t1, (SELECT 3 as b) AS x SET t1.a = x.b; select * from t1; a 3 select * from t1; a 3 drop table t1;
mysql-test/t/ctype_utf8.test +8 −0 Original line number Diff line number Diff line Loading @@ -851,6 +851,14 @@ insert into t1 values (_utf8 0x5b); select hex(a) from t1; drop table t1; # # Bug#13751 find_in_set: Illegal mix of collations # set names 'latin1'; create table t1 (a varchar(255)) default charset=utf8; select * from t1 where find_in_set('-1', a); drop table t1; # End of 4.1 tests # Loading
mysql-test/t/rpl_multi_update2.test +27 −0 Original line number Diff line number Diff line Loading @@ -4,6 +4,10 @@ source include/master-slave.inc; --disable_warnings drop table if exists t1,t2; --enable_warnings CREATE TABLE t1 ( a int unsigned not null auto_increment primary key, b int unsigned Loading Loading @@ -32,4 +36,27 @@ sync_with_master; SELECT * FROM t1 ORDER BY a; SELECT * FROM t2 ORDER BY a; connection master; drop table t1,t2; sync_slave_with_master; # # BUG#13236 multi-update with subquery & --replicate-ignore-table # reset master; connection master; CREATE TABLE t1 ( a INT ); INSERT INTO t1 VALUES (0); UPDATE t1, (SELECT 3 as b) AS x SET t1.a = x.b; select * from t1; sync_slave_with_master; connection slave; select * from t1; connection master; drop table t1; sync_slave_with_master; # End of 4.1 tests
sql/item_func.cc +1 −1 Original line number Diff line number Diff line Loading @@ -2351,7 +2351,7 @@ void Item_func_find_in_set::fix_length_and_dec() } } } agg_arg_collations_for_comparison(cmp_collation, args, 2); agg_arg_charsets(cmp_collation, args, 2, MY_COLL_CMP_CONV); } static const char separator=','; Loading