mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fixed some wrong/inconsistent error message
- Added trigger name to "Trigger already exists" error message - Added also missing query name to ER_DUP_QUERY_NAME - Fixed wrong use of MASTER_DELAY_VALUE_OUT_OF_RANGE
This commit is contained in:
@@ -833,6 +833,8 @@ bool Table_triggers_list::create_trigger(THD *thd, TABLE_LIST *tables,
|
||||
}
|
||||
else if (lex->create_info.if_not_exists())
|
||||
{
|
||||
strxnmov(trigname_buff, sizeof(trigname_buff-1), tables->db, ".",
|
||||
lex->spname->m_name.str, NullS);
|
||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE,
|
||||
ER_TRG_ALREADY_EXISTS,
|
||||
ER_THD(thd, ER_TRG_ALREADY_EXISTS),
|
||||
@@ -850,7 +852,9 @@ bool Table_triggers_list::create_trigger(THD *thd, TABLE_LIST *tables,
|
||||
}
|
||||
else
|
||||
{
|
||||
my_error(ER_TRG_ALREADY_EXISTS, MYF(0));
|
||||
strxnmov(trigname_buff, sizeof(trigname_buff-1), tables->db, ".",
|
||||
lex->spname->m_name.str, NullS);
|
||||
my_error(ER_TRG_ALREADY_EXISTS, MYF(0), trigname_buff);
|
||||
DBUG_RETURN(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user