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
6d8a5e90
Commit
6d8a5e90
authored
Dec 12, 2000
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge
sql/filesort.cc: merged
parents
28ad76e2
5902b26a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
49 additions
and
2 deletions
+49
-2
mysql-test/r/ft0000001.e.result
mysql-test/r/ft0000001.e.result
+8
-0
mysql-test/r/ft0000002.a.result
mysql-test/r/ft0000002.a.result
+4
-0
mysql-test/r/ft0000002.b.result
mysql-test/r/ft0000002.b.result
+4
-0
mysql-test/r/ft0000002.c.result
mysql-test/r/ft0000002.c.result
+4
-0
mysql-test/t/ft0000001.test
mysql-test/t/ft0000001.test
+8
-2
mysql-test/t/ft0000002.test
mysql-test/t/ft0000002.test
+20
-0
sql/filesort.cc
sql/filesort.cc
+1
-0
No files found.
mysql-test/r/ft0000001.e.result
0 → 100644
View file @
6d8a5e90
a rel
1 0
2 0
3 0
5 0
6 0
7 0.89568988462614
4 0.90587321329654
mysql-test/r/ft0000002.a.result
0 → 100644
View file @
6d8a5e90
a MATCH b AGAINST ('lala lkjh')
1 0.67003110026735
2 0
3 0
mysql-test/r/ft0000002.b.result
0 → 100644
View file @
6d8a5e90
a MATCH c AGAINST ('lala lkjh')
1 0
2 0.67756324121582
3 0
mysql-test/r/ft0000002.c.result
0 → 100644
View file @
6d8a5e90
a MATCH b,c AGAINST ('lala lkjh')
1 0.64840710366884
2 0.66266459031789
3 0
mysql-test/t/ft0000001.test
View file @
6d8a5e90
...
...
@@ -4,10 +4,16 @@ CREATE TABLE test (
a
INT
AUTO_INCREMENT
PRIMARY
KEY
,
message
CHAR
(
20
),
FULLTEXT
(
message
)
)
comment
=
'testcase by sroussey@network54.com'
;
)
comment
=
'
original
testcase by sroussey@network54.com'
;
INSERT
INTO
test
(
message
)
VALUES
(
"Testing"
),(
"table"
),(
"testbug"
),
(
"steve"
),(
"is"
),(
"cool"
),(
"steve is cool"
);
# basic MATCH
@
r
/
ft0000001
.
a
.
result
SELECT
a
,
MATCH
(
message
)
AGAINST
(
'steve'
)
FROM
test
WHERE
MATCH
(
message
)
AGAINST
(
'steve'
);
@
r
/
ft0000001
.
b
.
result
SELECT
a
,
MATCH
(
message
)
AGAINST
(
'steve'
)
FROM
test
WHERE
MATCH
(
message
)
AGAINST
(
'steve'
)
ORDER
BY
a
;
# MATCH + ORDER BY (w/o ft-ranges)
@
r
/
ft0000001
.
b
.
result
SELECT
a
,
MATCH
(
message
)
AGAINST
(
'steve'
)
FROM
test
WHERE
MATCH
(
message
)
AGAINST
(
'steve'
)
+
0
ORDER
BY
a
;
# MATCH + ORDER BY (w/ ft-ranges) + UNIQUE
@
r
/
ft0000001
.
c
.
result
SELECT
a
,
MATCH
(
message
)
AGAINST
(
'steve'
)
FROM
test
WHERE
a
in
(
2
,
7
,
4
)
and
MATCH
(
message
)
AGAINST
(
'steve'
)
ORDER
BY
a
DESC
;
# MATCH + ORDER BY + UNIQUE (const_table)
@
r
/
ft0000001
.
d
.
result
SELECT
a
,
MATCH
(
message
)
AGAINST
(
'steve'
)
FROM
test
WHERE
a
=
7
and
MATCH
(
message
)
AGAINST
(
'steve'
)
ORDER
BY
1
;
# ORDER BY MATCH
@
r
/
ft0000001
.
e
.
result
SELECT
a
,
MATCH
(
message
)
AGAINST
(
'steve'
)
as
rel
FROM
test
ORDER
BY
rel
;
mysql-test/t/ft0000002.test
0 → 100644
View file @
6d8a5e90
# several FULLTEXT indexes in one table test
use
test
;
DROP
TABLE
IF
EXISTS
test
;
CREATE
TABLE
test
(
a
int
(
11
)
NOT
NULL
auto_increment
,
b
text
,
c
varchar
(
254
)
default
NULL
,
PRIMARY
KEY
(
a
),
FULLTEXT
KEY
bb
(
b
),
FULLTEXT
KEY
cc
(
c
),
FULLTEXT
KEY
a
(
b
,
c
)
);
INSERT
INTO
test
VALUES
(
1
,
'lala lolo lili'
,
'oooo aaaa pppp'
);
INSERT
INTO
test
VALUES
(
2
,
'asdf fdsa'
,
'lkjh fghj'
);
INSERT
INTO
test
VALUES
(
3
,
'qpwoei'
,
'zmxnvb'
);
@
r
/
ft0000002
.
a
.
result
SELECT
a
,
MATCH
b
AGAINST
(
'lala lkjh'
)
FROM
test
;
@
r
/
ft0000002
.
b
.
result
SELECT
a
,
MATCH
c
AGAINST
(
'lala lkjh'
)
FROM
test
;
@
r
/
ft0000002
.
c
.
result
SELECT
a
,
MATCH
b
,
c
AGAINST
(
'lala lkjh'
)
FROM
test
;
sql/filesort.cc
View file @
6d8a5e90
...
...
@@ -301,6 +301,7 @@ static ha_rows find_all_keys(SORTPARAM *param, SQL_SELECT *select,
volatile
bool
*
killed
=
&
current_thd
->
killed
;
handler
*
file
;
DBUG_ENTER
(
"find_all_keys"
);
DBUG_PRINT
(
"info"
,(
"using: %s"
,(
select
?
select
->
quick
?
"ranges"
:
"where"
:
"every row"
)));
idx
=
indexpos
=
0
;
error
=
quick_select
=
0
;
...
...
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