mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
move test for bug29299 into seperate file as it requires charset gbk
fixes test breakage on sles10-ia64-a which omits charset. mysql-test/r/fulltext2.result: move test for bug29299 into seperate file as it requires charset gbk mysql-test/t/fulltext2.test: move test for bug29299 into seperate file as it requires charset gbk mysql-test/r/fulltext3.result: move test for bug29299 into seperate file as it requires charset gbk mysql-test/t/fulltext3.test: move test for bug29299 into seperate file as it requires charset gbk
This commit is contained in:
parent
63e03007eb
commit
1490e79da2
4 changed files with 37 additions and 24 deletions
|
@ -241,18 +241,6 @@ select * from t1 where match a against('ab c' in boolean mode);
|
|||
a
|
||||
drop table t1;
|
||||
set names latin1;
|
||||
CREATE TABLE t1(a VARCHAR(255) CHARACTER SET gbk, FULLTEXT(a));
|
||||
SET NAMES utf8;
|
||||
INSERT INTO t1 VALUES(0xF043616161),(0xBEF361616197C22061616161);
|
||||
SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST(0x97C22061616161 IN BOOLEAN MODE);
|
||||
HEX(a)
|
||||
BEF361616197C22061616161
|
||||
DELETE FROM t1 LIMIT 1;
|
||||
CHECK TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check status OK
|
||||
SET NAMES latin1;
|
||||
DROP TABLE t1;
|
||||
SET NAMES utf8;
|
||||
CREATE TABLE t1(a VARCHAR(255), FULLTEXT(a)) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
INSERT INTO t1 VALUES('„MySQL“');
|
||||
|
|
13
mysql-test/r/fulltext3.result
Normal file
13
mysql-test/r/fulltext3.result
Normal file
|
@ -0,0 +1,13 @@
|
|||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1(a VARCHAR(255) CHARACTER SET gbk, FULLTEXT(a));
|
||||
SET NAMES utf8;
|
||||
INSERT INTO t1 VALUES(0xF043616161),(0xBEF361616197C22061616161);
|
||||
SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST(0x97C22061616161 IN BOOLEAN MODE);
|
||||
HEX(a)
|
||||
BEF361616197C22061616161
|
||||
DELETE FROM t1 LIMIT 1;
|
||||
CHECK TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check status OK
|
||||
SET NAMES latin1;
|
||||
DROP TABLE t1;
|
|
@ -220,18 +220,6 @@ select * from t1 where match a against('ab c' in boolean mode);
|
|||
drop table t1;
|
||||
set names latin1;
|
||||
|
||||
#
|
||||
# BUG#29299 - repeatable myisam fulltext index corruption
|
||||
#
|
||||
CREATE TABLE t1(a VARCHAR(255) CHARACTER SET gbk, FULLTEXT(a));
|
||||
SET NAMES utf8;
|
||||
INSERT INTO t1 VALUES(0xF043616161),(0xBEF361616197C22061616161);
|
||||
SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST(0x97C22061616161 IN BOOLEAN MODE);
|
||||
DELETE FROM t1 LIMIT 1;
|
||||
CHECK TABLE t1;
|
||||
SET NAMES latin1;
|
||||
DROP TABLE t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
||||
#
|
||||
|
|
24
mysql-test/t/fulltext3.test
Normal file
24
mysql-test/t/fulltext3.test
Normal file
|
@ -0,0 +1,24 @@
|
|||
--source include/have_gbk.inc
|
||||
#
|
||||
# test of new fulltext search features
|
||||
#
|
||||
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
|
||||
#
|
||||
# BUG#29299 - repeatable myisam fulltext index corruption
|
||||
#
|
||||
CREATE TABLE t1(a VARCHAR(255) CHARACTER SET gbk, FULLTEXT(a));
|
||||
SET NAMES utf8;
|
||||
INSERT INTO t1 VALUES(0xF043616161),(0xBEF361616197C22061616161);
|
||||
SELECT HEX(a) FROM t1 WHERE MATCH(a) AGAINST(0x97C22061616161 IN BOOLEAN MODE);
|
||||
DELETE FROM t1 LIMIT 1;
|
||||
CHECK TABLE t1;
|
||||
SET NAMES latin1;
|
||||
DROP TABLE t1;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
Loading…
Reference in a new issue