MCPcopy Create free account
hub / github.com/MariaDB/server / dbug_user_var_equals_int

Function dbug_user_var_equals_int

sql/sql_select.cc:413–425  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

411*/
412
413bool dbug_user_var_equals_int(THD *thd, const char *name, int value)
414{
415 user_var_entry *var;
416 LEX_CSTRING varname= { name, strlen(name)};
417 if ((var= get_variable(&thd->user_vars, &varname, FALSE)))
418 {
419 bool null_value;
420 longlong var_value= var->val_int(&null_value);
421 if (!null_value && var_value == value)
422 return TRUE;
423 }
424 return FALSE;
425}
426
427/*
428 Debugging : check if @name= value, comparing as string

Callers 5

execMethod · 0.85
preread_initMethod · 0.85
do_selectFunction · 0.85
test_if_quick_selectFunction · 0.85

Calls 2

get_variableFunction · 0.85
val_intMethod · 0.45

Tested by 1

test_if_quick_selectFunction · 0.68