Skip to content
Permalink
Browse files

MDEV-18479 Assertion `join->best_read < double(1.79769313486231570815…

…e+308L)'

or server crashes in JOIN::fix_all_splittings_in_plan after EXPLAIN

This patch resolves the problem of overflowing when performing
calculations to estimate the cost of an evaluated query execution plan.
The overflowing in a non-debug build could cause different kind of
problems uncluding crashes of the server.
  • Loading branch information...
igorbabaev committed May 28, 2019
1 parent 4584c18 commit 0955462d0aafab01def9c1a5ec131eb641cb9e68
Showing with 772 additions and 79 deletions.
  1. +401 −0 mysql-test/r/derived_view.result
  2. +260 −0 mysql-test/t/derived_view.test
  3. +41 −28 sql/opt_subselect.cc
  4. +8 −0 sql/sql_const.h
  5. +62 −51 sql/sql_select.cc

0 comments on commit 0955462

Please sign in to comment.
You can’t perform that action at this time.