summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorsvoj@april.(none) <>2007-03-31 17:29:40 +0500
committersvoj@april.(none) <>2007-03-31 17:29:40 +0500
commit51710387ab6f744f829a51fef693ce8a5bbaefff (patch)
treef360ebbf99cea87831c4fa0f78d5b922ccc42f28 /sql/handler.h
parentb8e0d3490e30079c60f0df4255ec9061735011c0 (diff)
parentf297b5d873f3368022b173264087ebef98e0b2ce (diff)
downloadmariadb-git-51710387ab6f744f829a51fef693ce8a5bbaefff.tar.gz
Merge mysql.com:/home/svoj/devel/bk/mysql-5.0-engines
into mysql.com:/home/svoj/devel/mysql/BUG26138/mysql-5.1-engines
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 5c42dc670ee..cfa86358fa1 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -1472,6 +1472,17 @@ public:
virtual void free_foreign_key_create_info(char* str) {}
/* The following can be called without an open handler */
virtual const char *table_type() const =0;
+ /*
+ If frm_error() is called then we will use this to find out what file
+ extentions exist for the storage engine. This is also used by the default
+ rename_table and delete_table method in handler.cc.
+
+ For engines that have two file name extentions (separate meta/index file
+ and data file), the order of elements is relevant. First element of engine
+ file name extentions array should be meta/index file extention. Second
+ element - data file extention. This order is assumed by
+ prepare_for_repair() when REPAIR TABLE ... USE_FRM is issued.
+ */
virtual const char **bas_ext() const =0;
virtual int get_default_no_partitions(HA_CREATE_INFO *info) { return 1;}