1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +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

@@ -203,7 +203,7 @@ int search_topics(THD *thd, TABLE *topics, struct st_find_field *find_fields,
while (!read_record_info.read_record())
{
if (!select->cond->val_int()) // Doesn't match like
if (!select->cond->val_bool()) // Doesn't match like
continue;
memorize_variant_topic(thd,topics,count,find_fields,
names,name,description,example);
@@ -247,7 +247,7 @@ int search_keyword(THD *thd, TABLE *keywords,
while (!read_record_info.read_record() && count<2)
{
if (!select->cond->val_int()) // Dosn't match like
if (!select->cond->val_bool()) // Dosn't match like
continue;
*key_id= (int)find_fields[help_keyword_help_keyword_id].field->val_int();
@@ -381,7 +381,7 @@ int search_categories(THD *thd, TABLE *categories,
DBUG_RETURN(0);
while (!read_record_info.read_record())
{
if (select && !select->cond->val_int())
if (select && !select->cond->val_bool())
continue;
String *lname= new (thd->mem_root) String;
get_field(thd->mem_root,pfname,lname);
@@ -419,7 +419,7 @@ void get_all_items_for_category(THD *thd, TABLE *items, Field *pfname,
while (!read_record_info.read_record())
{
if (!select->cond->val_int())
if (!select->cond->val_bool())
continue;
String *name= new (thd->mem_root) String();
get_field(thd->mem_root,pfname,name);