Below is the list of changes that have just been committed into a local
5.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@stripped, 2007-04-18 13:27:04+05:00, svoj@stripped +3 -0
Merge mysql.com:/home/svoj/devel/mysql/BUG25951/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG25951/mysql-5.1-engines
MERGE: 1.1810.2374.117
mysql-test/r/fulltext.result@stripped, 2007-04-18 13:27:01+05:00, svoj@stripped +0 -0
Auto merged
MERGE: 1.83.1.4
mysql-test/t/fulltext.test@stripped, 2007-04-18 13:27:01+05:00, svoj@stripped +0 -0
Auto merged
MERGE: 1.79.1.3
sql/item_func.cc@stripped, 2007-04-18 13:27:01+05:00, svoj@stripped +0 -0
Auto merged
MERGE: 1.270.1.64
# 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: june.mysql.com
# Root: /home/svoj/devel/mysql/BUG25951/mysql-5.1-engines/RESYNC
--- 1.377/sql/item_func.cc 2007-04-13 12:43:59 +05:00
+++ 1.378/sql/item_func.cc 2007-04-18 13:27:01 +05:00
@@ -4725,7 +4725,7 @@ bool Item_func_match::fix_index()
for (keynr=0 ; keynr < table->s->keys ; keynr++)
{
if ((table->key_info[keynr].flags & HA_FULLTEXT) &&
- (table->keys_in_use_for_query.is_set(keynr)))
+ (table->s->keys_in_use.is_set(keynr)))
{
ft_to_key[fts]=keynr;
ft_cnt[fts]=0;
--- 1.91/mysql-test/r/fulltext.result 2006-11-01 16:44:41 +04:00
+++ 1.92/mysql-test/r/fulltext.result 2007-04-18 13:27:01 +05:00
@@ -469,3 +469,10 @@ a FORMAT(MATCH(a) AGAINST('test1 test'),
test1 0.685267
DEALLOCATE PREPARE stmt;
DROP TABLE t1;
+CREATE TABLE t1 (a VARCHAR(255), FULLTEXT(a));
+SELECT * FROM t1 IGNORE INDEX(a) WHERE MATCH(a) AGAINST('test');
+a
+ALTER TABLE t1 DISABLE KEYS;
+SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
+ERROR HY000: Can't find FULLTEXT index matching the column list
+DROP TABLE t1;
--- 1.83/mysql-test/t/fulltext.test 2006-03-22 19:48:29 +04:00
+++ 1.84/mysql-test/t/fulltext.test 2007-04-18 13:27:01 +05:00
@@ -389,4 +389,14 @@ EXECUTE stmt;
DEALLOCATE PREPARE stmt;
DROP TABLE t1;
+#
+# BUG#25951 - ignore/use index does not work with fulltext
+#
+CREATE TABLE t1 (a VARCHAR(255), FULLTEXT(a));
+SELECT * FROM t1 IGNORE INDEX(a) WHERE MATCH(a) AGAINST('test');
+ALTER TABLE t1 DISABLE KEYS;
+--error 1191
+SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
+DROP TABLE t1;
+
# End of 4.1 tests
| Thread |
|---|
| • bk commit into 5.1 tree (svoj:1.2564) | Sergey Vojtovich | 18 Apr |