List:Internals« Previous MessageNext Message »
From:svoj Date:November 12 2005 7:25am
Subject:bk commit into 4.1 tree (svoj:1.2471) BUG#5686
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of svoj. When svoj 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.2471 05/11/12 11:25:14 svoj@stripped +3 -0
  Fix for BUG#5686 - #1034 - Incorrect key file for table - only utf8

  mysql-test/t/fulltext.test
    1.75 05/11/12 11:24:58 svoj@stripped +6 -0
    Test case for bug#5686.

  mysql-test/r/fulltext.result
    1.76 05/11/12 11:24:58 svoj@stripped +4 -0
    Test case for bug#5686.

  myisam/ft_parser.c
    1.45 05/11/12 11:24:58 svoj@stripped +3 -1
    word->len calculation correction.

# 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:	svoj
# Host:	svoj-laptop.mysql.com
# Root:	/home/svoj/devel/mysql/BUG5686/mysql-4.1

--- 1.44/myisam/ft_parser.c	2005-03-06 15:31:34 +04:00
+++ 1.45/myisam/ft_parser.c	2005-11-12 11:24:58 +04:00
@@ -188,8 +188,10 @@
     for (word->pos=doc; doc<end; length++, mbl=my_mbcharlen(cs, *(uchar *)doc), doc+=(mbl ? mbl : 1))
       if (true_word_char(cs,*doc))
         mwc= 0;
-      else if (!misc_word_char(*doc) || mwc++)
+      else if (!misc_word_char(*doc) || mwc)
         break;
+      else
+        mwc++;
 
     word->len= (uint)(doc-word->pos) - mwc;
 

--- 1.75/mysql-test/r/fulltext.result	2005-08-02 12:12:35 +05:00
+++ 1.76/mysql-test/r/fulltext.result	2005-11-12 11:24:58 +04:00
@@ -428,4 +428,8 @@
 Table	Op	Msg_type	Msg_text
 test.t1	repair	status	OK
 SET myisam_repair_threads=@@global.myisam_repair_threads;
+INSERT INTO t1 VALUES('testword\'\'');
+SELECT a FROM t1 WHERE MATCH a AGAINST('testword' IN BOOLEAN MODE);
+a
+testword''
 DROP TABLE t1;

--- 1.74/mysql-test/t/fulltext.test	2005-08-02 12:12:35 +05:00
+++ 1.75/mysql-test/t/fulltext.test	2005-11-12 11:24:58 +04:00
@@ -348,6 +348,12 @@
 SET myisam_repair_threads=2;
 REPAIR TABLE t1;
 SET myisam_repair_threads=@@global.myisam_repair_threads;
+
+#
+# BUG#5686 - #1034 - Incorrect key file for table - only utf8
+#
+INSERT INTO t1 VALUES('testword\'\'');
+SELECT a FROM t1 WHERE MATCH a AGAINST('testword' IN BOOLEAN MODE);
 DROP TABLE t1;
 
 # End of 4.1 tests
Thread
bk commit into 4.1 tree (svoj:1.2471) BUG#5686svoj12 Nov