summaryrefslogtreecommitdiff
path: root/mysql-test/t/fulltext.test
diff options
context:
space:
mode:
authorBjorn Munch <Bjorn.Munch@sun.com>2009-09-02 18:58:17 +0200
committerBjorn Munch <Bjorn.Munch@sun.com>2009-09-02 18:58:17 +0200
commit588e9930b4067bd712ca30c063ccb09dbcfc6c40 (patch)
tree5558803a46329d136748a32e38c66c6ff19b5b09 /mysql-test/t/fulltext.test
parentd65168fddab05ed08d95eb5fead7cb1aad38edd5 (diff)
parentc4fa4f31ae7389a51d33e871951a236e57f1e19c (diff)
downloadmariadb-git-588e9930b4067bd712ca30c063ccb09dbcfc6c40.tar.gz
first merge from main
Diffstat (limited to 'mysql-test/t/fulltext.test')
-rw-r--r--mysql-test/t/fulltext.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/fulltext.test b/mysql-test/t/fulltext.test
index b565485bab9..80c8658d35c 100644
--- a/mysql-test/t/fulltext.test
+++ b/mysql-test/t/fulltext.test
@@ -471,3 +471,16 @@ CREATE TABLE t1(a VARCHAR(64), FULLTEXT(a));
INSERT INTO t1 VALUES('awrd bwrd cwrd'),('awrd bwrd cwrd'),('awrd bwrd cwrd');
SELECT * FROM t1 WHERE MATCH(a) AGAINST('+awrd bwrd* +cwrd*' IN BOOLEAN MODE);
DROP TABLE t1;
+
+#
+# BUG#37740 Server crashes on execute statement with full text search and match against
+#
+CREATE TABLE t1 (col text, FULLTEXT KEY full_text (col));
+
+PREPARE s FROM
+ "SELECT MATCH (col) AGAINST('findme') FROM t1 ORDER BY MATCH (col) AGAINST('findme')"
+ ;
+
+EXECUTE s;
+DEALLOCATE PREPARE s;
+DROP TABLE t1;