Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8006c5cd
Commit
8006c5cd
authored
Feb 12, 2009
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Plain Diff
Merge 5.0-bugteam -> 5.1-bugteam.
parents
f9f8fee9
659a2183
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+4
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+8
-0
sql/item_func.cc
sql/item_func.cc
+4
-1
No files found.
mysql-test/r/fulltext.result
View file @
8006c5cd
...
...
@@ -531,3 +531,7 @@ SELECT MATCH(a) AGAINST('aaa1* aaa14 aaa15 aaa16' IN BOOLEAN MODE) FROM t1;
MATCH(a) AGAINST('aaa1* aaa14 aaa15 aaa16' IN BOOLEAN MODE)
2
DROP TABLE t1;
CREATE TABLE t1(a TEXT);
SELECT GROUP_CONCAT(a) AS st FROM t1 HAVING MATCH(st) AGAINST('test' IN BOOLEAN MODE);
ERROR HY000: Incorrect arguments to AGAINST
DROP TABLE t1;
mysql-test/t/fulltext.test
View file @
8006c5cd
...
...
@@ -454,3 +454,11 @@ INSERT INTO t1 VALUES('aaa15');
SELECT
MATCH
(
a
)
AGAINST
(
'aaa1* aaa14 aaa16'
IN
BOOLEAN
MODE
)
FROM
t1
;
SELECT
MATCH
(
a
)
AGAINST
(
'aaa1* aaa14 aaa15 aaa16'
IN
BOOLEAN
MODE
)
FROM
t1
;
DROP
TABLE
t1
;
#
# BUG#36737 - having + full text operator crashes mysql
#
CREATE
TABLE
t1
(
a
TEXT
);
--
error
ER_WRONG_ARGUMENTS
SELECT
GROUP_CONCAT
(
a
)
AS
st
FROM
t1
HAVING
MATCH
(
st
)
AGAINST
(
'test'
IN
BOOLEAN
MODE
);
DROP
TABLE
t1
;
sql/item_func.cc
View file @
8006c5cd
...
...
@@ -5371,7 +5371,10 @@ bool Item_func_match::fix_fields(THD *thd, Item **ref)
if
(
item
->
type
()
==
Item
::
REF_ITEM
)
args
[
i
]
=
item
=
*
((
Item_ref
*
)
item
)
->
ref
;
if
(
item
->
type
()
!=
Item
::
FIELD_ITEM
)
key
=
NO_SUCH_KEY
;
{
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
"AGAINST"
);
return
TRUE
;
}
}
/*
Check that all columns come from the same table.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment