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
9272081e
Commit
9272081e
authored
Mar 08, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#6635 - test_if_skip_sort_order() thought it can skip filesort
for fulltext searches too
parent
c36fa576
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
mysql-test/r/fulltext_order_by.result
mysql-test/r/fulltext_order_by.result
+8
-0
mysql-test/t/fulltext_order_by.test
mysql-test/t/fulltext_order_by.test
+8
-0
sql/sql_select.cc
sql/sql_select.cc
+1
-1
No files found.
mysql-test/r/fulltext_order_by.result
View file @
9272081e
...
...
@@ -62,6 +62,14 @@ a rel
6 0
4 1
7 1
alter table t1 add key m (message);
explain SELECT message FROM t1 WHERE MATCH (message) AGAINST ('steve') ORDER BY message;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 fulltext message message 0 1 Using where; Using filesort
SELECT message FROM t1 WHERE MATCH (message) AGAINST ('steve') ORDER BY message desc;
message
steve is cool
steve
drop table t1;
CREATE TABLE t1 (
a INT AUTO_INCREMENT PRIMARY KEY,
...
...
mysql-test/t/fulltext_order_by.test
View file @
9272081e
...
...
@@ -31,6 +31,14 @@ SELECT a, MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) FROM t1 WHERE a=7 an
SELECT
a
,
FORMAT
(
MATCH
(
message
)
AGAINST
(
'steve'
),
6
)
as
rel
FROM
t1
ORDER
BY
rel
;
SELECT
a
,
MATCH
(
message
)
AGAINST
(
'steve'
IN
BOOLEAN
MODE
)
as
rel
FROM
t1
ORDER
BY
rel
;
#
# BUG#6635 - test_if_skip_sort_order() thought it can skip filesort
# for fulltext searches too
#
alter
table
t1
add
key
m
(
message
);
explain
SELECT
message
FROM
t1
WHERE
MATCH
(
message
)
AGAINST
(
'steve'
)
ORDER
BY
message
;
SELECT
message
FROM
t1
WHERE
MATCH
(
message
)
AGAINST
(
'steve'
)
ORDER
BY
message
desc
;
drop
table
t1
;
#
...
...
sql/sql_select.cc
View file @
9272081e
...
...
@@ -7142,7 +7142,7 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
{
ref_key
=
tab
->
ref
.
key
;
ref_key_parts
=
tab
->
ref
.
key_parts
;
if
(
tab
->
type
==
JT_REF_OR_NULL
)
if
(
tab
->
type
==
JT_REF_OR_NULL
||
tab
->
type
==
JT_FT
)
DBUG_RETURN
(
0
);
}
else
if
(
select
&&
select
->
quick
)
// Range found by opt_range
...
...
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