diff options
author | unknown <gkodinov/kgeorge@magare.gmz> | 2007-07-11 11:57:49 +0300 |
---|---|---|
committer | unknown <gkodinov/kgeorge@magare.gmz> | 2007-07-11 11:57:49 +0300 |
commit | 2ca32b764b97f1409dda5f648086075cab2559db (patch) | |
tree | 59e8a2b8ae66e1621ebc91c449331732c2cb907f /sql/sql_table.cc | |
parent | 33e556ff5562212746011e1c1232d3dbd00f59a2 (diff) | |
parent | 1abab6c7c7461bac95afd424e80b9a953fdf897b (diff) | |
download | mariadb-git-2ca32b764b97f1409dda5f648086075cab2559db.tar.gz |
Merge magare.gmz:/home/kgeorge/mysql/work/B29325-5.0-opt
into magare.gmz:/home/kgeorge/mysql/work/B29325-5.1-opt
include/my_base.h:
Auto merged
mysql-test/t/create.test:
Auto merged
storage/myisam/ha_myisam.cc:
Auto merged
storage/myisam/mi_create.c:
Auto merged
mysql-test/r/create.result:
5.0-opt -> 5.1-opt merge
sql/set_var.cc:
5.0-opt -> 5.1-opt merge
sql/sql_class.h:
5.0-opt -> 5.1-opt merge
sql/sql_table.cc:
5.0-opt -> 5.1-opt merge
sql/unireg.cc:
5.0-opt -> 5.1-opt merge
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 047c210d6a5..7f18d8e6dd2 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -4697,8 +4697,11 @@ bool mysql_create_like_table(THD* thd, TABLE_LIST* table, TABLE_LIST* src_table, DBUG_EXECUTE_IF("sleep_create_like_before_ha_create", my_sleep(6000000);); dst_path[dst_path_length - reg_ext_length]= '\0'; // Remove .frm + if (thd->variables.keep_files_on_create) + create_info->options|= HA_CREATE_KEEP_FILES; err= ha_create_table(thd, dst_path, db, table_name, create_info, 1); VOID(pthread_mutex_unlock(&LOCK_open)); + if (create_info->options & HA_LEX_CREATE_TMP_TABLE) { if (err || !open_temporary_table(thd, dst_path, db, table_name, 1)) |