Skip to content

Commit

Permalink
Fix for crash on SSB query 2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
greenlion committed Feb 5, 2023
1 parent e56b9cd commit 1fb2a13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions storage/warp/ha_warp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2594,8 +2594,9 @@ int warp_push_to_engine(THD * thd , AccessPath * root_path, JOIN * join) {
ha->push_where_clause += save_where;

assert(root_path->filter().condition != nullptr);
if(remainder)
root_path->filter().condition = const_cast<Item *>(remainder);
//if(remainder)
// root_path->filter().condition = const_cast<Item *>(remainder);

// To get correct explain output: (Does NOT affect what is executed)
// Need to set the QEP_TAB condition as well. Note that QEP_TABs
//are not 'executed' any longer -> affects only explain output.
Expand Down

0 comments on commit 1fb2a13

Please sign in to comment.