mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Merge stella.local:/home2/mydev/mysql-4.1-ateam
into stella.local:/home2/mydev/mysql-4.1-axmrg
This commit is contained in:
@ -446,7 +446,8 @@ static int _ftb_strstr(const byte *s0, const byte *e0,
|
|||||||
{
|
{
|
||||||
if (cs->coll->instr(cs, p0, e0 - p0, s1, e1 - s1, m, 2) != 2)
|
if (cs->coll->instr(cs, p0, e0 - p0, s1, e1 - s1, m, 2) != 2)
|
||||||
return(0);
|
return(0);
|
||||||
if ((!s_after || p0 + m[1].beg == s0 || !true_word_char(cs, p0[m[1].beg-1])) &&
|
if ((!s_after || p0 + m[1].beg == s0 ||
|
||||||
|
!true_word_char(cs, p0[(int) m[1].beg - 1])) &&
|
||||||
(!e_before || p0 + m[1].end == e0 || !true_word_char(cs, p0[m[1].end])))
|
(!e_before || p0 + m[1].end == e0 || !true_word_char(cs, p0[m[1].end])))
|
||||||
return(1);
|
return(1);
|
||||||
p0+= m[1].beg;
|
p0+= m[1].beg;
|
||||||
|
@ -454,3 +454,9 @@ ALTER TABLE t1 DISABLE KEYS;
|
|||||||
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
|
||||||
ERROR HY000: Can't find FULLTEXT index matching the column list
|
ERROR HY000: Can't find FULLTEXT index matching the column list
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1(a TEXT);
|
||||||
|
INSERT INTO t1 VALUES(' aaaaa aaaa');
|
||||||
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST ('"aaaa"' IN BOOLEAN MODE);
|
||||||
|
a
|
||||||
|
aaaaa aaaa
|
||||||
|
DROP TABLE t1;
|
||||||
|
@ -379,4 +379,12 @@ ALTER TABLE t1 DISABLE KEYS;
|
|||||||
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST('test');
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# BUG#11392 - fulltext search bug
|
||||||
|
#
|
||||||
|
CREATE TABLE t1(a TEXT);
|
||||||
|
INSERT INTO t1 VALUES(' aaaaa aaaa');
|
||||||
|
SELECT * FROM t1 WHERE MATCH(a) AGAINST ('"aaaa"' IN BOOLEAN MODE);
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
# End of 4.1 tests
|
# End of 4.1 tests
|
||||||
|
Reference in New Issue
Block a user