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
72f530ef
Commit
72f530ef
authored
Sep 16, 2005
by
evgen@moonbone.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/12291-bug-5.0-mysql
parents
5e393f5a
097ca8ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
4 deletions
+32
-4
mysql-test/r/select.result
mysql-test/r/select.result
+17
-0
mysql-test/t/select.test
mysql-test/t/select.test
+12
-0
sql/opt_range.cc
sql/opt_range.cc
+3
-4
No files found.
mysql-test/r/select.result
View file @
72f530ef
...
@@ -2943,3 +2943,20 @@ select * from t1 join t2 join t4 using (c);
...
@@ -2943,3 +2943,20 @@ select * from t1 join t2 join t4 using (c);
c a b
c a b
1 1 1
1 1 1
drop table t1, t2, t3, t4;
drop table t1, t2, t3, t4;
create table t1(x int, y int);
create table t2(x int, y int);
create table t3(x int, primary key(x));
insert into t1 values (1, 1), (2, 1), (3, 1), (4, 3), (5, 6), (6, 6);
insert into t2 values (1, 1), (2, 1), (3, 3), (4, 6), (5, 6);
insert into t3 values (1), (2), (3), (4), (5);
select t1.x, t3.x from t1, t2, t3 where t1.x = t2.x and t3.x >= t1.y and t3.x <= t2.y;
x x
1 1
2 1
3 1
3 2
3 3
4 3
4 4
4 5
drop table t1,t2,t3;
mysql-test/t/select.test
View file @
72f530ef
...
@@ -2523,3 +2523,15 @@ select * from t1, t2 join t3 on (t2.b = t3.b and t1.a = t3.a);
...
@@ -2523,3 +2523,15 @@ select * from t1, t2 join t3 on (t2.b = t3.b and t1.a = t3.a);
select
*
from
t1
join
t2
join
t3
join
t4
on
(
t1
.
a
=
t4
.
c
and
t2
.
b
=
t4
.
c
);
select
*
from
t1
join
t2
join
t3
join
t4
on
(
t1
.
a
=
t4
.
c
and
t2
.
b
=
t4
.
c
);
select
*
from
t1
join
t2
join
t4
using
(
c
);
select
*
from
t1
join
t2
join
t4
using
(
c
);
drop
table
t1
,
t2
,
t3
,
t4
;
drop
table
t1
,
t2
,
t3
,
t4
;
#
# Bug #12291 Table wasn't reinited for index scan after sequential scan
#
create
table
t1
(
x
int
,
y
int
);
create
table
t2
(
x
int
,
y
int
);
create
table
t3
(
x
int
,
primary
key
(
x
));
insert
into
t1
values
(
1
,
1
),
(
2
,
1
),
(
3
,
1
),
(
4
,
3
),
(
5
,
6
),
(
6
,
6
);
insert
into
t2
values
(
1
,
1
),
(
2
,
1
),
(
3
,
3
),
(
4
,
6
),
(
5
,
6
);
insert
into
t3
values
(
1
),
(
2
),
(
3
),
(
4
),
(
5
);
select
t1
.
x
,
t3
.
x
from
t1
,
t2
,
t3
where
t1
.
x
=
t2
.
x
and
t3
.
x
>=
t1
.
y
and
t3
.
x
<=
t2
.
y
;
drop
table
t1
,
t2
,
t3
;
sql/opt_range.cc
View file @
72f530ef
...
@@ -750,10 +750,9 @@ int QUICK_RANGE_SELECT::init()
...
@@ -750,10 +750,9 @@ int QUICK_RANGE_SELECT::init()
{
{
DBUG_ENTER
(
"QUICK_RANGE_SELECT::init"
);
DBUG_ENTER
(
"QUICK_RANGE_SELECT::init"
);
if
(
file
->
inited
==
handler
::
NONE
)
if
(
file
->
inited
!=
handler
::
NONE
)
DBUG_RETURN
(
error
=
file
->
ha_index_init
(
index
));
file
->
ha_index_or_rnd_end
();
error
=
0
;
DBUG_RETURN
(
error
=
file
->
ha_index_init
(
index
));
DBUG_RETURN
(
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