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
679b7704
Commit
679b7704
authored
Dec 28, 2011
by
Sergey Petrunya
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
c583aaf5
a05a566c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
2 deletions
+30
-2
mysql-test/r/fulltext_left_join.result
mysql-test/r/fulltext_left_join.result
+14
-0
mysql-test/r/fulltext_order_by.result
mysql-test/r/fulltext_order_by.result
+2
-2
mysql-test/t/fulltext_left_join.test
mysql-test/t/fulltext_left_join.test
+13
-0
sql/item_func.h
sql/item_func.h
+1
-0
No files found.
mysql-test/r/fulltext_left_join.result
View file @
679b7704
...
@@ -97,3 +97,17 @@ INSERT INTO t2(b,c) VALUES(2,'castle'),(3,'castle');
...
@@ -97,3 +97,17 @@ INSERT INTO t2(b,c) VALUES(2,'castle'),(3,'castle');
SELECT * FROM t1 LEFT JOIN t2 ON a=b WHERE MATCH(c) AGAINST('+castle' IN BOOLEAN MODE);
SELECT * FROM t1 LEFT JOIN t2 ON a=b WHERE MATCH(c) AGAINST('+castle' IN BOOLEAN MODE);
a b c
a b c
DROP TABLE t1, t2;
DROP TABLE t1, t2;
#
# BUG#906357: Incorrect result with outer join and full text match
#
CREATE TABLE t1(f1 VARCHAR(6) NOT NULL, FULLTEXT KEY(f1), UNIQUE(f1));
INSERT INTO t1 VALUES ('test');
CREATE TABLE t2(f2 VARCHAR(6) NOT NULL, FULLTEXT KEY(f2), UNIQUE(f2));
INSERT INTO t2 VALUES ('test');
SELECT * FROM t2 LEFT OUTER JOIN t1 ON (MATCH(f1) against (""));
f2 f1
test NULL
SELECT * FROM t1 RIGHT OUTER JOIN t2 ON (MATCH(f1) against (""));
f1 f2
NULL test
DROP table t1,t2;
mysql-test/r/fulltext_order_by.result
View file @
679b7704
...
@@ -46,10 +46,10 @@ a MATCH (message) AGAINST ('steve' IN BOOLEAN MODE)
...
@@ -46,10 +46,10 @@ a MATCH (message) AGAINST ('steve' IN BOOLEAN MODE)
7 1
7 1
SELECT a, FORMAT(MATCH (message) AGAINST ('steve'),6) as rel FROM t1 ORDER BY rel;
SELECT a, FORMAT(MATCH (message) AGAINST ('steve'),6) as rel FROM t1 ORDER BY rel;
a rel
a rel
1 0.000000
2 0.000000
3 0.000000
3 0.000000
1 0.000000
5 0.000000
5 0.000000
2 0.000000
6 0.000000
6 0.000000
7 0.895690
7 0.895690
4 0.905873
4 0.905873
...
...
mysql-test/t/fulltext_left_join.test
View file @
679b7704
...
@@ -98,3 +98,16 @@ INSERT INTO t1 VALUES(1);
...
@@ -98,3 +98,16 @@ INSERT INTO t1 VALUES(1);
INSERT
INTO
t2
(
b
,
c
)
VALUES
(
2
,
'castle'
),(
3
,
'castle'
);
INSERT
INTO
t2
(
b
,
c
)
VALUES
(
2
,
'castle'
),(
3
,
'castle'
);
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
a
=
b
WHERE
MATCH
(
c
)
AGAINST
(
'+castle'
IN
BOOLEAN
MODE
);
SELECT
*
FROM
t1
LEFT
JOIN
t2
ON
a
=
b
WHERE
MATCH
(
c
)
AGAINST
(
'+castle'
IN
BOOLEAN
MODE
);
DROP
TABLE
t1
,
t2
;
DROP
TABLE
t1
,
t2
;
--
echo
#
--
echo
# BUG#906357: Incorrect result with outer join and full text match
--
echo
#
CREATE
TABLE
t1
(
f1
VARCHAR
(
6
)
NOT
NULL
,
FULLTEXT
KEY
(
f1
),
UNIQUE
(
f1
));
INSERT
INTO
t1
VALUES
(
'test'
);
CREATE
TABLE
t2
(
f2
VARCHAR
(
6
)
NOT
NULL
,
FULLTEXT
KEY
(
f2
),
UNIQUE
(
f2
));
INSERT
INTO
t2
VALUES
(
'test'
);
SELECT
*
FROM
t2
LEFT
OUTER
JOIN
t1
ON
(
MATCH
(
f1
)
against
(
""
));
SELECT
*
FROM
t1
RIGHT
OUTER
JOIN
t2
ON
(
MATCH
(
f1
)
against
(
""
));
DROP
table
t1
,
t2
;
sql/item_func.h
View file @
679b7704
...
@@ -1676,6 +1676,7 @@ public:
...
@@ -1676,6 +1676,7 @@ public:
table
=
0
;
// required by Item_func_match::eq()
table
=
0
;
// required by Item_func_match::eq()
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
bool
is_expensive_processor
(
uchar
*
arg
)
{
return
TRUE
;
}
enum
Functype
functype
()
const
{
return
FT_FUNC
;
}
enum
Functype
functype
()
const
{
return
FT_FUNC
;
}
const
char
*
func_name
()
const
{
return
"match"
;
}
const
char
*
func_name
()
const
{
return
"match"
;
}
void
update_used_tables
()
{}
void
update_used_tables
()
{}
...
...
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