@brief Execute function & store value in field. @return Function returns error status. @retval FALSE on success. @retval TRUE if an error occurred. */
| 3008 | @retval TRUE if an error occurred. |
| 3009 | */ |
| 3010 | bool 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. |