Skip to content

Commit

Permalink
Fixed results for main.delete_use_source to make it repeatable
Browse files Browse the repository at this point in the history
  • Loading branch information
montywi committed May 26, 2021
1 parent aa284e0 commit 1e5ebf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mysql-test/main/delete_use_source.result
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions mysql-test/main/delete_use_source.test
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;
Expand Down

0 comments on commit 1e5ebf3

Please sign in to comment.