mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Fix for BUG#12075.
FULLTEXT non-functional for big5 strings mysql-test/r/ctype_big5.result: Test case for BUG#12075. mysql-test/t/ctype_big5.test: Test case for BUG#12075. strings/ctype-big5.c: hack: (to be fixed properly later) all multi-byte sequences are considered isalpha() now
This commit is contained in:
@@ -128,3 +128,9 @@ SELECT * FROM t1;
|
|||||||
a
|
a
|
||||||
<EFBFBD><EFBFBD>
|
<EFBFBD><EFBFBD>
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
CREATE TABLE t1 (a CHAR(50) CHARACTER SET big5 NOT NULL, FULLTEXT(a));
|
||||||
|
INSERT INTO t1 VALUES(0xA741ADCCA66EB6DC20A7DAADCCABDCA66E);
|
||||||
|
SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST (0xA741ADCCA66EB6DC IN BOOLEAN MODE);
|
||||||
|
HEX(a)
|
||||||
|
A741ADCCA66EB6DC20A7DAADCCABDCA66E
|
||||||
|
DROP TABLE t1;
|
||||||
|
@@ -28,4 +28,12 @@ INSERT INTO t1 VALUES ('
|
|||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# BUG#12075 - FULLTEXT non-functional for big5 strings
|
||||||
|
#
|
||||||
|
CREATE TABLE t1 (a CHAR(50) CHARACTER SET big5 NOT NULL, FULLTEXT(a));
|
||||||
|
INSERT INTO t1 VALUES(0xA741ADCCA66EB6DC20A7DAADCCABDCA66E);
|
||||||
|
SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST (0xA741ADCCA66EB6DC IN BOOLEAN MODE);
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
# End of 4.1 tests
|
# End of 4.1 tests
|
||||||
|
@@ -61,12 +61,12 @@ static uchar NEAR ctype_big5[257] =
|
|||||||
2,2,2,2,2,2,2,2,2,2,2,16,16,16,16,32,
|
2,2,2,2,2,2,2,2,2,2,2,16,16,16,16,32,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
0,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,
|
||||||
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
|
3,3,3,3,3,3,3,3,3,3,0,0,0,0,0,0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static uchar NEAR to_lower_big5[]=
|
static uchar NEAR to_lower_big5[]=
|
||||||
|
Reference in New Issue
Block a user