mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
refactor THD::raise_condition() family
to remove Sql_condition* raise_condition(const Sql_condition *cond) { Sql_condition *raised= raise_condition(cond->get_sql_errno(), cond->get_sqlstate(), cond->get_level(), *cond, cond->get_message_text()); return raised; }
This commit is contained in:
@ -443,7 +443,6 @@ private:
|
||||
const char *msg, ulong current_row_for_warning)
|
||||
: Sql_condition_identity(value), m_mem_root(mem_root)
|
||||
{
|
||||
DBUG_ASSERT(mem_root != NULL);
|
||||
DBUG_ASSERT(value.get_sql_errno() != 0);
|
||||
DBUG_ASSERT(msg != NULL);
|
||||
set_builtin_message_text(msg);
|
||||
@ -746,10 +745,8 @@ private:
|
||||
|
||||
@return a pointer to the added SQL-condition.
|
||||
*/
|
||||
Sql_condition *push_warning(THD *thd,
|
||||
const Sql_condition_identity *identity,
|
||||
const char* msg,
|
||||
ulong current_row_number);
|
||||
Sql_condition *push_warning(THD *thd, const Sql_condition_identity *identity,
|
||||
const char* msg, ulong current_row_number);
|
||||
|
||||
/**
|
||||
Add a new SQL-condition to the current list and increment the respective
|
||||
|
Reference in New Issue
Block a user