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
b33111ba
Commit
b33111ba
authored
May 18, 2021
by
Dmitry Shulga
Committed by
Sergei Golubchik
Jun 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-16708: Fixed the failed test main.join_cache
parent
129098b7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
mysql-test/main/join_cache.result
mysql-test/main/join_cache.result
+2
-2
mysql-test/main/join_cache.test
mysql-test/main/join_cache.test
+2
-2
No files found.
mysql-test/main/join_cache.result
View file @
b33111ba
...
...
@@ -5993,14 +5993,14 @@ create table t3 (c3 int);
insert into t1 values (1), (2);
insert into t2 values (1), (2);
insert into t3 values (2);
set @counter=0;
explain
select count(*) from t1 straight_join t2
where c1 = c2-0 and c2 <= (select max(c3) from t3 where c3 = 2 and @counter:=@counter+1);
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t1 ALL NULL NULL NULL NULL 2
1 PRIMARY t2 ALL NULL NULL NULL NULL 2 Using where; Using join buffer (flat, BNL join)
2 UNCACHEABLE SUBQUERY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE
set @counter=0;
2 UNCACHEABLE SUBQUERY t3 system NULL NULL NULL NULL 1
select count(*) from t1 straight_join t2
where c1 = c2-0 and c2 <= (select max(c3) from t3 where c3 = 2 and @counter:=@counter+1);
count(*)
...
...
mysql-test/main/join_cache.test
View file @
b33111ba
...
...
@@ -3998,12 +3998,12 @@ insert into t1 values (1), (2);
insert
into
t2
values
(
1
),
(
2
);
insert
into
t3
values
(
2
);
set
@
counter
=
0
;
explain
select
count
(
*
)
from
t1
straight_join
t2
where
c1
=
c2
-
0
and
c2
<=
(
select
max
(
c3
)
from
t3
where
c3
=
2
and
@
counter
:=@
counter
+
1
);
set
@
counter
=
0
;
select
count
(
*
)
from
t1
straight_join
t2
where
c1
=
c2
-
0
and
c2
<=
(
select
max
(
c3
)
from
t3
where
c3
=
2
and
@
counter
:=@
counter
+
1
);
...
...
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