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
9559fad9
Commit
9559fad9
authored
Dec 30, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Continuation of the efforts in previous cset.
parent
788fb783
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
mysql-test/r/fulltext_order_by.result
mysql-test/r/fulltext_order_by.result
+9
-9
mysql-test/t/fulltext_order_by.test
mysql-test/t/fulltext_order_by.test
+1
-1
No files found.
mysql-test/r/fulltext_order_by.result
View file @
9559fad9
...
@@ -53,15 +53,15 @@ other 0.000000
...
@@ -53,15 +53,15 @@ other 0.000000
other 0.000000
other 0.000000
steve-is-cool 0.895690
steve-is-cool 0.895690
cool 0.905873
cool 0.905873
SELECT IF(a=7,'
steve-is-cool',IF(a=4,'cool', 'other
')), MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) as rel FROM t1 ORDER BY rel;
SELECT IF(a=7,'
match',IF(a=4,'match', 'no-match
')), MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) as rel FROM t1 ORDER BY rel;
IF(a=7,'
steve-is-cool',IF(a=4,'cool', 'other
')) rel
IF(a=7,'
match',IF(a=4,'match', 'no-match
')) rel
other
0
no-match
0
other
0
no-match
0
other
0
no-match
0
other
0
no-match
0
other
0
no-match
0
steve-is-cool
1
match
1
cool
1
match
1
alter table t1 add key m (message);
alter table t1 add key m (message);
explain SELECT message FROM t1 WHERE MATCH (message) AGAINST ('steve') ORDER BY 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
id select_type table type possible_keys key key_len ref rows Extra
...
...
mysql-test/t/fulltext_order_by.test
View file @
9559fad9
...
@@ -29,7 +29,7 @@ SELECT a, MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) FROM t1 WHERE a=7 an
...
@@ -29,7 +29,7 @@ SELECT a, MATCH (message) AGAINST ('steve' IN BOOLEAN MODE) FROM t1 WHERE a=7 an
# ORDER BY MATCH
# ORDER BY MATCH
SELECT
IF
(
a
=
7
,
'steve-is-cool'
,
IF
(
a
=
4
,
'cool'
,
'other'
)),
FORMAT
(
MATCH
(
message
)
AGAINST
(
'steve'
),
6
)
as
rel
FROM
t1
ORDER
BY
rel
;
SELECT
IF
(
a
=
7
,
'steve-is-cool'
,
IF
(
a
=
4
,
'cool'
,
'other'
)),
FORMAT
(
MATCH
(
message
)
AGAINST
(
'steve'
),
6
)
as
rel
FROM
t1
ORDER
BY
rel
;
SELECT
IF
(
a
=
7
,
'
steve-is-cool'
,
IF
(
a
=
4
,
'cool'
,
'other
'
)),
MATCH
(
message
)
AGAINST
(
'steve'
IN
BOOLEAN
MODE
)
as
rel
FROM
t1
ORDER
BY
rel
;
SELECT
IF
(
a
=
7
,
'
match'
,
IF
(
a
=
4
,
'match'
,
'no-match
'
)),
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
# BUG#6635 - test_if_skip_sort_order() thought it can skip filesort
...
...
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