summaryrefslogtreecommitdiff
path: root/sql/sql_table.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2013-04-09 16:19:01 +0200
committerSergei Golubchik <sergii@pisem.net>2013-04-09 16:19:01 +0200
commita53200d4e7e1377784034d676c609d9b533e9fb7 (patch)
tree50fab6ff12812d5fcc971735df4cb0ebcb2bcf57 /sql/sql_table.h
parent0c4cf3c7e58973511975443e52fb232b3d940e4a (diff)
downloadmariadb-git-a53200d4e7e1377784034d676c609d9b533e9fb7.tar.gz
remove HA_CREATE_INFO::frm_only - it's internal server flag,
not part of the SE API, and, again, mutually exclusive with C_ORDINARY_CREATE and C_CREATE_SELECT.
Diffstat (limited to 'sql/sql_table.h')
-rw-r--r--sql/sql_table.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/sql_table.h b/sql/sql_table.h
index a15a9770b87..3bed73f67c3 100644
--- a/sql/sql_table.h
+++ b/sql/sql_table.h
@@ -156,6 +156,10 @@ bool mysql_create_table(THD *thd, TABLE_LIST *create_table,
- ALTER TABLE, that creates a temporary table #sql-xxx, which will be later
renamed to replace the original table.
+ - ALTER TABLE as above, but which only modifies the frm file, it only
+ creates an frm file for the #sql-xxx, the table in the engine is not
+ created.
+
These situations are distinguished by the following "create table mode"
values, where a CREATE ... SELECT is denoted by any non-negative number
(which should be the number of fields in the SELECT ... part), and other
@@ -164,6 +168,7 @@ bool mysql_create_table(THD *thd, TABLE_LIST *create_table,
#define C_CREATE_SELECT(X) ((X) > 0 ? (X) : 0)
#define C_ORDINARY_CREATE 0
#define C_ALTER_TABLE -1
+#define C_ALTER_TABLE_FRM_ONLY -2
bool mysql_create_table_no_lock(THD *thd, const char *db,
const char *table_name,