List:Commits« Previous MessageNext Message »
From:igor Date:June 23 2006 3:39am
Subject:bk commit into 4.1 tree (igor:1.2517) BUG#18359
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of igor. When igor 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.2517 06/06/22 20:39:46 igor@stripped +2 -0
  Added a test case for bug #18359.
  This was another manifestation of the problems fixed in the
  patch for bug 16674.
  Wrong calculation of length of the search prefix in the pattern
  string led here to a wrong result set for a query in 4.1. 
  The bug could be demonstrated for any multi-byte character set. 

  mysql-test/t/ctype_utf8.test
    1.75 06/06/22 20:39:40 igor@stripped +31 -0
    Added a test case for bug #18359.

  mysql-test/r/ctype_utf8.result
    1.73 06/06/22 20:39:40 igor@stripped +56 -0
    Added a test case for bug #18359.

# 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:	igor
# Host:	rurik.mysql.com
# Root:	/home/igor/mysql-4.1-opt

--- 1.72/mysql-test/r/ctype_utf8.result	2006-06-21 22:39:43 -07:00
+++ 1.73/mysql-test/r/ctype_utf8.result	2006-06-22 20:39:40 -07:00
@@ -1237,3 +1237,59 @@
 Käli Käli 2-4
 Käli Käli 2-4
 DROP TABLE t1;
+SET NAMES latin2;
+CREATE TABLE t1 (
+id int(11) NOT NULL default '0',
+tid int(11) NOT NULL default '0',
+val text NOT NULL,
+INDEX idx(tid, val(10))
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+INSERT INTO t1 VALUES
+SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNY ADSL';
+id	tid	val
+id	tid	val
+id	tid	val
+ALTER TABLE t1 DROP KEY idx;
+ALTER TABLE t1 ADD KEY idx (tid,val(11));
+id	tid	val
+DROP TABLE t1;

--- 1.74/mysql-test/t/ctype_utf8.test	2006-06-21 22:39:43 -07:00
+++ 1.75/mysql-test/t/ctype_utf8.test	2006-06-22 20:39:40 -07:00
@@ -1009,4 +1009,35 @@
 SELECT * FROM t1 WHERE a LIKE 'Käli Käli 2%';
 DROP TABLE t1;
 
+#
+# Bug#18359: LIKE predicate for a 'utf8' text column with a partial index
+#            (see bug #16674 as well)
+#
+
+SET NAMES latin2;
+
+CREATE TABLE t1 (
+  id int(11) NOT NULL default '0',
+  tid int(11) NOT NULL default '0',
+  val text NOT NULL,
+  INDEX idx(tid, val(10))
+) ENGINE=MyISAM DEFAULT CHARSET=utf8;
+
+INSERT INTO t1 VALUES
+
+SELECT * FROM t1 WHERE tid=72 and val LIKE 'VOLNY ADSL'; 
+
+ALTER TABLE t1 DROP KEY idx;
+ALTER TABLE t1 ADD KEY idx (tid,val(11));
+
+
+DROP TABLE t1;
 # End of 4.1 tests
Thread
bk commit into 4.1 tree (igor:1.2517) BUG#18359igor23 Jun