diff options
| author | Sergei Golubchik <sergii@pisem.net> | 2014-03-26 22:32:20 +0100 |
|---|---|---|
| committer | Sergei Golubchik <sergii@pisem.net> | 2014-03-26 22:32:20 +0100 |
| commit | e29a4dd51989b4574f6d129268d8f255d5c9de2e (patch) | |
| tree | 714f82955d876588024e5ed81b86f816b8d31256 /sql/sql_insert.cc | |
| parent | 707dd6b9e937fea193c6981ce1b495c185310be4 (diff) | |
| download | mariadb-git-e29a4dd51989b4574f6d129268d8f255d5c9de2e.tar.gz | |
MDEV-5433 select_result::send_error() is unused
remove dead code
Diffstat (limited to 'sql/sql_insert.cc')
| -rw-r--r-- | sql/sql_insert.cc | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index e258ac14776..bf512fef67d 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -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()) |
