Skip to content

Commit

Permalink
Fixed bug in optimizer_costs.test
Browse files Browse the repository at this point in the history
The test failed if one had disabled some engines during compilation
  • Loading branch information
montywi committed Feb 27, 2023
1 parent b24b3ce commit 50c8e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mysql-test/main/optimizer_costs.result
Original file line number Diff line number Diff line change
Expand Up @@ -344,4 +344,4 @@ drop table t1;
#
# cleanup
#
Start_engines: 9 End_engines: 10
"New cost structures: 1 (should be 1)"
4 changes: 3 additions & 1 deletion mysql-test/main/optimizer_costs.test
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,6 @@ drop table t1;
--echo #

let $end_engines=`select count(*) from information_schema.optimizer_costs`;
--echo Start_engines: $start_engines End_engines: $end_engines
let $diff=`select $end_engines - $start_engines`;
--echo "New cost structures: $diff (should be 1)"

0 comments on commit 50c8e65

Please sign in to comment.