summaryrefslogtreecommitdiff
path: root/mysql-test/r/fulltext.result
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2010-02-02 18:37:56 +0200
committerGeorgi Kodinov <joro@sun.com>2010-02-02 18:37:56 +0200
commit4cfda7fd3b3fe10acb55eb9fbf0a5743defaab3b (patch)
tree2fbb1345c950fd6dc87af920400cd75704ed6b24 /mysql-test/r/fulltext.result
parent632cf4c5023ca8e714c5e250662ece59678f7c59 (diff)
downloadmariadb-git-4cfda7fd3b3fe10acb55eb9fbf0a5743defaab3b.tar.gz
Bug #49445: Assertion failed: 0, file .\item_row.cc, line 55 with
fulltext search and row op. The search for fulltext indexes is searching for some special predicate layouts. While doing so it's not checking for the number of columns of the expressions it tries to calculate. And since row expressions can't return a single scalar value there was a crash. Fixed by checking if the expressions are scalar (in addition to being constant) before calling Item::val_xxx() methods.
Diffstat (limited to 'mysql-test/r/fulltext.result')
-rw-r--r--mysql-test/r/fulltext.result8
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/r/fulltext.result b/mysql-test/r/fulltext.result
index 1ef6656e7a4..f65823518d4 100644
--- a/mysql-test/r/fulltext.result
+++ b/mysql-test/r/fulltext.result
@@ -603,4 +603,12 @@ WHERE t3.a=t1.a AND MATCH(b2) AGAINST('scargill' IN BOOLEAN MODE)
count(*)
0
DROP TABLE t1,t2,t3;
+#
+# Bug #49445: Assertion failed: 0, file .\item_row.cc, line 55 with
+# fulltext search and row op
+#
+CREATE TABLE t1(a CHAR(1),FULLTEXT(a));
+SELECT 1 FROM t1 WHERE MATCH(a) AGAINST ('') AND ROW(a,a) > ROW(1,1);
+1
+DROP TABLE t1;
End of 5.1 tests