mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 10:15:29 +02:00
MDEV-5433 select_result::send_error() is unused
remove dead code
This commit is contained in:
parent
707dd6b9e9
commit
e29a4dd519
5 changed files with 4 additions and 88 deletions
|
|
@ -3636,16 +3636,6 @@ void select_insert::store_values(List<Item> &values)
|
|||
TRG_EVENT_INSERT);
|
||||
}
|
||||
|
||||
void select_insert::send_error(uint errcode,const char *err)
|
||||
{
|
||||
DBUG_ENTER("select_insert::send_error");
|
||||
|
||||
my_message(errcode, err, MYF(0));
|
||||
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
||||
bool select_insert::send_eof()
|
||||
{
|
||||
int error;
|
||||
|
|
@ -4198,36 +4188,6 @@ void select_create::store_values(List<Item> &values)
|
|||
}
|
||||
|
||||
|
||||
void select_create::send_error(uint errcode,const char *err)
|
||||
{
|
||||
DBUG_ENTER("select_create::send_error");
|
||||
|
||||
DBUG_PRINT("info",
|
||||
("Current statement %s row-based",
|
||||
thd->is_current_stmt_binlog_format_row() ? "is" : "is NOT"));
|
||||
DBUG_PRINT("info",
|
||||
("Current table (at 0x%lu) %s a temporary (or non-existant) table",
|
||||
(ulong) table,
|
||||
table && !table->s->tmp_table ? "is NOT" : "is"));
|
||||
/*
|
||||
This will execute any rollbacks that are necessary before writing
|
||||
the transcation cache.
|
||||
|
||||
We disable the binary log since nothing should be written to the
|
||||
binary log. This disabling is important, since we potentially do
|
||||
a "roll back" of non-transactional tables by removing the table,
|
||||
and the actual rollback might generate events that should not be
|
||||
written to the binary log.
|
||||
|
||||
*/
|
||||
tmp_disable_binlog(thd);
|
||||
select_insert::send_error(errcode, err);
|
||||
reenable_binlog(thd);
|
||||
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
|
||||
|
||||
bool select_create::send_eof()
|
||||
{
|
||||
if (select_insert::send_eof())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue