From: Date: July 13 2005 10:15pm Subject: bk commit into 4.1 tree (konstantin:1.2350) BUG#9442 List-Archive: http://lists.mysql.com/internals/27029 X-Bug: 9442 Message-Id: <20050713201530.63115A8F5@dragonfly.local> Below is the list of changes that have just been committed into a local 4.1 repository of kostja. When kostja does a push these changes will be propagated to the main repository and, within 24 hours after the push, to the public repository. For information on how to access the public repository see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html ChangeSet 1.2350 05/07/14 00:15:23 konstantin@stripped +2 -0 A test case for Bug#9442 "Set parameter make query fail if column character set is UCS2". The bug is no longer repeatable. mysql-test/t/ps.test 1.38 05/07/14 00:15:15 konstantin@stripped +13 -0 A test case for Bug#9442 "Set parameter make query fail if column character set is UCS2 mysql-test/r/ps.result 1.39 05/07/14 00:15:15 konstantin@stripped +19 -0 Test results fixed (a test case for Bug#9442) # This is a BitKeeper patch. What follows are the unified diffs for the # set of deltas contained in the patch. The rest of the patch, the part # that BitKeeper cares about, is below these diffs. # User: konstantin # Host: dragonfly.local # Root: /opt/local/work/mysql-4.1-9379 --- 1.38/mysql-test/r/ps.result 2005-07-13 23:43:41 +04:00 +++ 1.39/mysql-test/r/ps.result 2005-07-14 00:15:15 +04:00 @@ -641,3 +641,22 @@ ?=? 1 deallocate prepare stmt; +create table t1 (utext varchar(20) character set ucs2); +insert into t1 values ("lily"); +insert into t1 values ("river"); +prepare stmt from 'select utext from t1 where utext like ?'; +set @param1='%%'; +execute stmt using @param1; +utext +lily +river +execute stmt using @param1; +utext +lily +river +select utext from t1 where utext like '%%'; +utext +lily +river +drop table t1; +deallocate prepare stmt; --- 1.37/mysql-test/t/ps.test 2005-07-13 23:43:41 +04:00 +++ 1.38/mysql-test/t/ps.test 2005-07-14 00:15:15 +04:00 @@ -666,3 +666,16 @@ set @b='CHRISTINE'; execute stmt using @a, @b; deallocate prepare stmt; +# +# Bug#9442 Set parameter make query fail if column character set is UCS2 +# +create table t1 (utext varchar(20) character set ucs2); +insert into t1 values ("lily"); +insert into t1 values ("river"); +prepare stmt from 'select utext from t1 where utext like ?'; +set @param1='%%'; +execute stmt using @param1; +execute stmt using @param1; +select utext from t1 where utext like '%%'; +drop table t1; +deallocate prepare stmt;