summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-04-09 15:57:09 +0200
committerSergei Golubchik <sergii@pisem.net>2013-04-09 15:57:09 +0200
commite06cb31719ce31fb1cd7944d1de86d4de9e3eca6 (patch)
tree2c740b5851514787748799604b6c724d7c4e10b9 /sql/handler.h
parentb3e70c4ae713abeddd47b3987f898ed763fa4eca (diff)
downloadmariadb-git-e06cb31719ce31fb1cd7944d1de86d4de9e3eca6.tar.gz
CREATE TABLE and frm-less discovering engines.
Now CREATE TABLE does not write the frm file on disk, if the engine can discover it
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 11221fa3b10..8e4d59e7f7f 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -1397,6 +1397,8 @@ struct HA_CREATE_INFO
ha_table_option_struct *option_struct; ///< structure with parsed table options
ha_field_option_struct **fields_option_struct; ///< array of field option structures
ha_index_option_struct **indexes_option_struct; ///< array of index option structures
+
+ bool tmp_table() { return options & HA_LEX_CREATE_TMP_TABLE; }
};
@@ -3093,7 +3095,7 @@ void ha_checkpoint_state(bool disable);
void ha_commit_checkpoint_request(void *cookie, void (*pre_hook)(void *));
int ha_create_table(THD *thd, const char *path,
const char *db, const char *table_name,
- HA_CREATE_INFO *create_info);
+ HA_CREATE_INFO *create_info, LEX_CUSTRING *frm);
int ha_delete_table(THD *thd, handlerton *db_type, const char *path,
const char *db, const char *alias, bool generate_warning);