summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-02-21 20:41:48 +0200
committerunknown <monty@mysql.com>2005-02-21 20:41:48 +0200
commit0834c07950fa11cf2efd54251a3e025cb596ee09 (patch)
tree19da946b683ea88a6897b8cf0ec4535e791b43f1 /sql/handler.h
parent39e9f2566fa9e1eb6022a1a2cd9b316fb9772348 (diff)
downloadmariadb-git-0834c07950fa11cf2efd54251a3e025cb596ee09.tar.gz
Generate warning in ha_delete_table() if files is missing in handler
mysql-test/r/myisam.result: Test of DROP TABLE when .MYI or .MYD is missing mysql-test/r/ndb_autodiscover.result: Update test results mysql-test/r/rpl_EE_error.result: Change test to conform with new handling of drop table when handler file is missing mysql-test/t/myisam.test: Test of DROP TABLE when .MYI or .MYD is missing mysql-test/t/rpl_EE_error.test: Change test to conform with new handling of drop table when handler file is missing sql/handler.cc: Generate a warning in ha_delete_table() if we get an error from 'delete_table()' sql/handler.h: More parameters to ha_delete_table() so that we can generate better error messages sql/sql_table.cc: Generate warning in ha_delete_table()
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index fb368bad29f..3a1862cad07 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -757,7 +757,8 @@ bool ha_flush_logs(void);
void ha_drop_database(char* path);
int ha_create_table(const char *name, HA_CREATE_INFO *create_info,
bool update_create_info);
-int ha_delete_table(enum db_type db_type, const char *path);
+int ha_delete_table(THD *thd, enum db_type db_type, const char *path,
+ const char *alias, bool generate_warning);
/* discovery */
int ha_create_table_from_engine(THD* thd, const char *db, const char *name,