List:Commits« Previous MessageNext Message »
From:Sergey Vojtovich Date:January 11 2006 10:24am
Subject:bk commit into 5.0 tree (svoj:1.2034) BUG#13835
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 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.2034 06/01/11 14:24:11 svoj@april.(none) +3 -0
  BUG#13835: max key length is 1000 bytes when trying to create a fulltext index
  Allow fulltext index on VARCHAR columns longer than max key.

  sql/sql_table.cc
    1.292 06/01/11 14:23:53 svoj@april.(none) +1 -1
    Allow fulltext index on VARCHAR columns longer than max key.

  mysql-test/t/fulltext.test
    1.79 06/01/11 14:23:53 svoj@april.(none) +7 -0
    A test case for BUG#13835 added.

  mysql-test/r/fulltext.result
    1.83 06/01/11 14:23:53 svoj@april.(none) +2 -0
    A test case for BUG#13835 added.

# 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:	april.(none)
# Root:	/home/svoj/devel/mysql/BUG13835/mysql-5.0

--- 1.291/sql/sql_table.cc	2005-12-05 15:08:19 +04:00
+++ 1.292/sql/sql_table.cc	2006-01-11 14:23:53 +04:00
@@ -1296,7 +1296,7 @@
 	my_error(ER_WRONG_KEY_COLUMN, MYF(0), column->field_name);
 	  DBUG_RETURN(-1);
       }
-      if (length > file->max_key_part_length())
+      if (length > file->max_key_part_length() && key->type != Key::FULLTEXT)
       {
 	length=file->max_key_part_length();
 	if (key->type == Key::MULTIPLE)

--- 1.82/mysql-test/r/fulltext.result	2005-11-26 23:22:50 +04:00
+++ 1.83/mysql-test/r/fulltext.result	2006-01-11 14:23:53 +04:00
@@ -437,3 +437,5 @@
 a
 testword''
 DROP TABLE t1;
+CREATE TABLE t1 (a VARCHAR(10000), FULLTEXT(a));
+DROP TABLE t1;

--- 1.78/mysql-test/t/fulltext.test	2005-11-26 23:22:50 +04:00
+++ 1.79/mysql-test/t/fulltext.test	2006-01-11 14:23:53 +04:00
@@ -357,4 +357,11 @@
 SELECT a FROM t1 WHERE MATCH a AGAINST('testword\'\'' IN BOOLEAN MODE);
 DROP TABLE t1;
 
+#
+# BUG#13835: max key length is 1000 bytes when trying to create
+#            a fulltext index
+#
+CREATE TABLE t1 (a VARCHAR(10000), FULLTEXT(a));
+DROP TABLE t1;
+
 # End of 4.1 tests
Thread
bk commit into 5.0 tree (svoj:1.2034) BUG#13835Sergey Vojtovich11 Jan