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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
0ad57bef
Commit
0ad57bef
authored
Jul 15, 2009
by
Anurag Shekhar
Browse files
Options
Browse Files
Download
Plain Diff
merging with 5.0 bugteam tree
parents
ada6ad45
c77b836a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
0 deletions
+22
-0
mysql-test/r/fulltext.result
mysql-test/r/fulltext.result
+8
-0
mysql-test/t/fulltext.test
mysql-test/t/fulltext.test
+13
-0
sql/item_func.h
sql/item_func.h
+1
-0
No files found.
mysql-test/r/fulltext.result
View file @
0ad57bef
...
...
@@ -543,3 +543,11 @@ awrd bwrd cwrd
awrd bwrd cwrd
awrd bwrd cwrd
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 @
0ad57bef
...
...
@@ -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
;
sql/item_func.h
View file @
0ad57bef
...
...
@@ -1519,6 +1519,7 @@ class Item_func_match :public Item_real_func
ft_handler
->
please
->
close_search
(
ft_handler
);
ft_handler
=
0
;
concat_ws
=
0
;
table
=
0
;
// required by Item_func_match::eq()
DBUG_VOID_RETURN
;
}
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