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
1b7754a5
Commit
1b7754a5
authored
Jul 15, 2009
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
8acf778e
7c670fc3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+8
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+15
-0
sql/item_func.h
sql/item_func.h
+1
-0
No files found.
mysql-test/r/fulltext.result
View file @
1b7754a5
...
@@ -510,3 +510,11 @@ CREATE TABLE t1(a TEXT);
...
@@ -510,3 +510,11 @@ CREATE TABLE t1(a TEXT);
SELECT GROUP_CONCAT(a) AS st FROM t1 HAVING MATCH(st) AGAINST('test' IN BOOLEAN MODE);
SELECT GROUP_CONCAT(a) AS st FROM t1 HAVING MATCH(st) AGAINST('test' IN BOOLEAN MODE);
ERROR HY000: Incorrect arguments to AGAINST
ERROR HY000: Incorrect arguments to AGAINST
DROP TABLE t1;
DROP TABLE t1;
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;
MATCH (col) AGAINST('findme')
DEALLOCATE PREPARE s;
DROP TABLE t1;
mysql-test/t/fulltext.test
View file @
1b7754a5
...
@@ -440,3 +440,18 @@ CREATE TABLE t1(a TEXT);
...
@@ -440,3 +440,18 @@ CREATE TABLE t1(a TEXT);
--
error
ER_WRONG_ARGUMENTS
--
error
ER_WRONG_ARGUMENTS
SELECT
GROUP_CONCAT
(
a
)
AS
st
FROM
t1
HAVING
MATCH
(
st
)
AGAINST
(
'test'
IN
BOOLEAN
MODE
);
SELECT
GROUP_CONCAT
(
a
)
AS
st
FROM
t1
HAVING
MATCH
(
st
)
AGAINST
(
'test'
IN
BOOLEAN
MODE
);
DROP
TABLE
t1
;
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
;
sql/item_func.h
View file @
1b7754a5
...
@@ -1456,6 +1456,7 @@ public:
...
@@ -1456,6 +1456,7 @@ public:
ft_handler
->
please
->
close_search
(
ft_handler
);
ft_handler
->
please
->
close_search
(
ft_handler
);
ft_handler
=
0
;
ft_handler
=
0
;
concat_ws
=
0
;
concat_ws
=
0
;
table
=
0
;
// required by Item_func_match::eq()
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
enum
Functype
functype
()
const
{
return
FT_FUNC
;
}
enum
Functype
functype
()
const
{
return
FT_FUNC
;
}
...
...
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