summaryrefslogtreecommitdiff
path: root/sql/sql_delete.cc
diff options
context:
space:
mode:
authorunknown <stewart@willster.(none)>2006-10-16 17:39:38 +1000
committerunknown <stewart@willster.(none)>2006-10-16 17:39:38 +1000
commit62689e18e727ecc213770a6e717c576753e9b6c3 (patch)
treed301ac33f253385737189c92d56fb5c94d4e76c9 /sql/sql_delete.cc
parent4416725b34e9f075cf0087b71b037db72e6075ea (diff)
parent44a882f92540a51949485a08a0ced93d114fdfa9 (diff)
downloadmariadb-git-62689e18e727ecc213770a6e717c576753e9b6c3.tar.gz
Merge willster.(none):/home/stewart/Documents/MySQL/4.1/bug19914-mk2
into willster.(none):/home/stewart/Documents/MySQL/5.0/bug19914-mk2-merge sql/ha_berkeley.cc: Auto merged sql/ha_berkeley.h: Auto merged BitKeeper/deleted/.del-ha_isam.cc~4dce65904db2675e: Auto merged BitKeeper/deleted/.del-ha_isam.h~bf53d533be3d3927: Auto merged BitKeeper/deleted/.del-ha_isammrg.cc~dc682e4755d77a2e: Auto merged BitKeeper/deleted/.del-ha_isammrg.h~66fd2e5bfe7207dc: Auto merged sql/ha_archive.cc: Auto merged sql/ha_archive.h: Auto merged sql/ha_blackhole.cc: Auto merged sql/ha_blackhole.h: Auto merged sql/ha_heap.cc: Auto merged sql/ha_heap.h: Auto merged sql/ha_innodb.cc: Auto merged sql/ha_innodb.h: Auto merged sql/ha_myisam.cc: Auto merged sql/ha_myisam.h: Auto merged sql/ha_myisammrg.cc: Auto merged sql/ha_myisammrg.h: Auto merged sql/item_sum.cc: Auto merged sql/opt_sum.cc: Auto merged sql/sql_delete.cc: Auto merged sql/examples/ha_example.cc: Auto merged sql/examples/ha_example.h: Auto merged sql/examples/ha_tina.cc: Auto merged sql/examples/ha_tina.h: Auto merged sql/sql_union.cc: Auto merged sql/ha_ndbcluster.cc: merge sql/ha_ndbcluster.h: merge sql/handler.h: merge sql/sql_select.cc: merge
Diffstat (limited to 'sql/sql_delete.cc')
-rw-r--r--sql/sql_delete.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_delete.cc b/sql/sql_delete.cc
index c95fb5d5973..8ee6274ff11 100644
--- a/sql/sql_delete.cc
+++ b/sql/sql_delete.cc
@@ -49,7 +49,12 @@ bool mysql_delete(THD *thd, TABLE_LIST *table_list, COND *conds,
table_list->view_db.str, table_list->view_name.str);
DBUG_RETURN(TRUE);
}
- table->file->info(HA_STATUS_VARIABLE | HA_STATUS_NO_LOCK);
+ error= table->file->info(HA_STATUS_VARIABLE | HA_STATUS_NO_LOCK);
+ if (error)
+ {
+ table->file->print_error(error, MYF(0));
+ DBUG_RETURN(error);
+ }
thd->proc_info="init";
table->map=1;