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
1e5ebf37
Commit
1e5ebf37
authored
May 26, 2021
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed results for main.delete_use_source to make it repeatable
parent
aa284e02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
mysql-test/main/delete_use_source.result
mysql-test/main/delete_use_source.result
+2
-2
mysql-test/main/delete_use_source.test
mysql-test/main/delete_use_source.test
+1
-0
No files found.
mysql-test/main/delete_use_source.result
View file @
1e5ebf37
...
...
@@ -64,8 +64,8 @@ rollback;
start transaction;
explain delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500;
id select_type table type possible_keys key key_len ref rows Extra
1 PRIMARY t1 ALL c1 NULL NULL NULL
670
Using where
2 DEPENDENT SUBQUERY b ref c1 c1 4 test.t1.c1
83
Using index
1 PRIMARY t1 ALL c1 NULL NULL NULL
#
Using where
2 DEPENDENT SUBQUERY b ref c1 c1 4 test.t1.c1
#
Using index
delete from v1 where (select count(*) from t1 b where b.c1=v1.c1) = 500 ;
affected rows: 500
select count(*) from v1 where c1=0;
...
...
mysql-test/main/delete_use_source.test
View file @
1e5ebf37
...
...
@@ -64,6 +64,7 @@ rollback;
--
echo
#
start
transaction
;
--
replace_column
9
#
explain
delete
from
v1
where
(
select
count
(
*
)
from
t1
b
where
b
.
c1
=
v1
.
c1
)
=
500
;
--
enable_info
ONCE
delete
from
v1
where
(
select
count
(
*
)
from
t1
b
where
b
.
c1
=
v1
.
c1
)
=
500
;
...
...
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