Commit 184ebe59 authored by unknown's avatar unknown

sql_yacc.yy:

  Add DISCARD etc. in the keyword: rule of sql_yacc.yy
sql_table.cc:
  Add comment that DISCARD/IMPORT TABLESPACE is always the only clause in an ALTER TABLE


sql/sql_table.cc:
  Add comment that DISCARD/IMPORT TABLESPACE is always the only clause in an ALTER TABLE
sql/sql_yacc.yy:
  Add DISCARD etc. in the keyword: rule of sql_yacc.yy
parent 692820cc
...@@ -1779,8 +1779,6 @@ int mysql_discard_or_import_tablespace(THD *thd, ...@@ -1779,8 +1779,6 @@ int mysql_discard_or_import_tablespace(THD *thd,
DBUG_RETURN(-1); DBUG_RETURN(-1);
} }
thd->tablespace_op=FALSE;
error=table->file->discard_or_import_tablespace(discard); error=table->file->discard_or_import_tablespace(discard);
thd->proc_info="end"; thd->proc_info="end";
...@@ -1806,6 +1804,7 @@ int mysql_discard_or_import_tablespace(THD *thd, ...@@ -1806,6 +1804,7 @@ int mysql_discard_or_import_tablespace(THD *thd,
} }
err: err:
close_thread_tables(thd); close_thread_tables(thd);
thd->tablespace_op=FALSE;
if (error == 0) { if (error == 0) {
send_ok(thd); send_ok(thd);
DBUG_RETURN(0); DBUG_RETURN(0);
...@@ -1848,6 +1847,7 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name, ...@@ -1848,6 +1847,7 @@ int mysql_alter_table(THD *thd,char *new_db, char *new_name,
mysql_ha_closeall(thd, table_list); mysql_ha_closeall(thd, table_list);
/* DISCARD/IMPORT TABLESPACE is always alone in an ALTER TABLE */
if (tablespace_op != NO_TABLESPACE_OP) if (tablespace_op != NO_TABLESPACE_OP)
DBUG_RETURN(mysql_discard_or_import_tablespace(thd,table_list, DBUG_RETURN(mysql_discard_or_import_tablespace(thd,table_list,
tablespace_op)); tablespace_op));
......
...@@ -4515,6 +4515,7 @@ keyword: ...@@ -4515,6 +4515,7 @@ keyword:
| DELAY_KEY_WRITE_SYM {} | DELAY_KEY_WRITE_SYM {}
| DES_KEY_FILE {} | DES_KEY_FILE {}
| DIRECTORY_SYM {} | DIRECTORY_SYM {}
| DISCARD {}
| DO_SYM {} | DO_SYM {}
| DUAL_SYM {} | DUAL_SYM {}
| DUMPFILE {} | DUMPFILE {}
...@@ -4546,6 +4547,7 @@ keyword: ...@@ -4546,6 +4547,7 @@ keyword:
| HOSTS_SYM {} | HOSTS_SYM {}
| HOUR_SYM {} | HOUR_SYM {}
| IDENTIFIED_SYM {} | IDENTIFIED_SYM {}
| IMPORT {}
| INDEXES {} | INDEXES {}
| ISOLATION {} | ISOLATION {}
| ISAM_SYM {} | ISAM_SYM {}
...@@ -4654,6 +4656,7 @@ keyword: ...@@ -4654,6 +4656,7 @@ keyword:
| SUBDATE_SYM {} | SUBDATE_SYM {}
| SUBJECT_SYM {} | SUBJECT_SYM {}
| SUPER_SYM {} | SUPER_SYM {}
| TABLESPACE {}
| TEMPORARY {} | TEMPORARY {}
| TEXT_SYM {} | TEXT_SYM {}
| TRANSACTION_SYM {} | TRANSACTION_SYM {}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment