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
55182340
Commit
55182340
authored
Nov 20, 2003
by
serg@sergbook.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more left join tests
parent
05b3ff39
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
mysql-test/r/fulltext_left_join.result
mysql-test/r/fulltext_left_join.result
+8
-0
mysql-test/t/fulltext_left_join.test
mysql-test/t/fulltext_left_join.test
+2
-0
No files found.
mysql-test/r/fulltext_left_join.result
View file @
55182340
...
@@ -41,4 +41,12 @@ venue_id venue_text dt name entity_id
...
@@ -41,4 +41,12 @@ venue_id venue_text dt name entity_id
select * from t1 left join t2 on venue_id = entity_id where match(name) against('aberdeen') and dt = '2003-05-23 19:30:00';
select * from t1 left join t2 on venue_id = entity_id where match(name) against('aberdeen') and dt = '2003-05-23 19:30:00';
venue_id venue_text dt name entity_id
venue_id venue_text dt name entity_id
1 a1 2003-05-23 19:30:00 aberdeen town hall 1
1 a1 2003-05-23 19:30:00 aberdeen town hall 1
select * from t1 left join t2 on (venue_id = entity_id and match(name) against('aberdeen' in boolean mode)) where dt = '2003-05-23 19:30:00';
venue_id venue_text dt name entity_id
1 a1 2003-05-23 19:30:00 aberdeen town hall 1
NULL a2 2003-05-23 19:30:00 NULL NULL
select * from t1 left join t2 on (venue_id = entity_id and match(name) against('aberdeen')) where dt = '2003-05-23 19:30:00';
venue_id venue_text dt name entity_id
1 a1 2003-05-23 19:30:00 aberdeen town hall 1
NULL a2 2003-05-23 19:30:00 NULL NULL
drop table t1,t2;
drop table t1,t2;
mysql-test/t/fulltext_left_join.test
View file @
55182340
...
@@ -38,5 +38,7 @@ create table t2 (name varchar(255) not null default '', entity_id int(11) not nu
...
@@ -38,5 +38,7 @@ create table t2 (name varchar(255) not null default '', entity_id int(11) not nu
insert
into
t2
(
name
,
entity_id
)
values
(
'aberdeen town hall'
,
1
),
(
'glasgow royal concert hall'
,
2
),
(
'queen\'s hall, edinburgh'
,
3
);
insert
into
t2
(
name
,
entity_id
)
values
(
'aberdeen town hall'
,
1
),
(
'glasgow royal concert hall'
,
2
),
(
'queen\'s hall, edinburgh'
,
3
);
select
*
from
t1
left
join
t2
on
venue_id
=
entity_id
where
match
(
name
)
against
(
'aberdeen'
in
boolean
mode
)
and
dt
=
'2003-05-23 19:30:00'
;
select
*
from
t1
left
join
t2
on
venue_id
=
entity_id
where
match
(
name
)
against
(
'aberdeen'
in
boolean
mode
)
and
dt
=
'2003-05-23 19:30:00'
;
select
*
from
t1
left
join
t2
on
venue_id
=
entity_id
where
match
(
name
)
against
(
'aberdeen'
)
and
dt
=
'2003-05-23 19:30:00'
;
select
*
from
t1
left
join
t2
on
venue_id
=
entity_id
where
match
(
name
)
against
(
'aberdeen'
)
and
dt
=
'2003-05-23 19:30:00'
;
select
*
from
t1
left
join
t2
on
(
venue_id
=
entity_id
and
match
(
name
)
against
(
'aberdeen'
in
boolean
mode
))
where
dt
=
'2003-05-23 19:30:00'
;
select
*
from
t1
left
join
t2
on
(
venue_id
=
entity_id
and
match
(
name
)
against
(
'aberdeen'
))
where
dt
=
'2003-05-23 19:30:00'
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
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