1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-35135 Assertion `!is_cond()' failed in Item_bool_func::val_int / do_select

Change val_int with val_bool when it is a condition.
This commit is contained in:
Oleksandr Byelkin
2024-10-14 09:36:17 +02:00
parent cd97caef84
commit a79c9b3812
7 changed files with 45 additions and 22 deletions

View File

@@ -4828,7 +4828,7 @@ bool JOIN_CACHE_BKAH::skip_index_tuple(range_id_t range_info)
next_rec_ref_ptr= get_next_rec_ref(next_rec_ref_ptr);
uchar *rec_ptr= next_rec_ref_ptr + rec_fields_offset;
get_record_by_pos(rec_ptr);
if (join_tab->cache_idx_cond->val_int())
if (join_tab->cache_idx_cond->val_bool())
DBUG_RETURN(FALSE);
} while(next_rec_ref_ptr != last_rec_ref_ptr);
DBUG_RETURN(TRUE);