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

Method execute

sql/item.cc:3010–3025  ·  view source on GitHub ↗

@brief Execute function & store value in field. @return Function returns error status. @retval FALSE on success. @retval TRUE if an error occurred. */

Source from the content-addressed store, hash-verified

3008 @retval TRUE if an error occurred.
3009*/
3010bool Item_sp::execute(THD *thd, bool *null_value, Item **args, uint arg_count)
3011{
3012 if (unlikely(execute_impl(thd, args, arg_count)))
3013 {
3014 *null_value= 1;
3015 process_error(thd);
3016 if (thd->killed)
3017 thd->send_kill_message();
3018 return true;
3019 }
3020
3021 /* Check that the field (the value) is not NULL. */
3022
3023 *null_value= sp_result_field->is_null();
3024 return (*null_value);
3025}
3026
3027/**
3028 @brief Execute function and store the return value in the field.

Callers 8

test_2_3Method · 0.45
test_4_5Method · 0.45
runMethod · 0.45
run_sql_commandFunction · 0.45
wsrep_sst_cleanup_userFunction · 0.45
mysql_derived_fillFunction · 0.45
execMethod · 0.45

Calls 2

send_kill_messageMethod · 0.80
is_nullMethod · 0.45

Tested by 2

test_2_3Method · 0.36
test_4_5Method · 0.36