diff options
author | unknown <ingo/istruewing@chilla.local> | 2006-08-02 18:39:21 +0200 |
---|---|---|
committer | unknown <ingo/istruewing@chilla.local> | 2006-08-02 18:39:21 +0200 |
commit | efcf996f88d2764f7a9c96971cd573cf2a01161a (patch) | |
tree | 2b2bbd17136b20c9433fb19f73ca276679d4d303 /sql/sql_table.cc | |
parent | 312034fa4491708f19aff9efd527c50519cc0078 (diff) | |
download | mariadb-git-efcf996f88d2764f7a9c96971cd573cf2a01161a.tar.gz |
Bug#18775 - Temporary table from alter table visible to other threads
Reverting part of the patch. NDB has unencoded names in their
data dictionary.
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 2a6f30a81dc..9d28e0496b1 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -3435,13 +3435,9 @@ bool mysql_create_table_internal(THD *thd, */ if (!(create_info->options & HA_LEX_CREATE_TMP_TABLE)) { - char dbbuff[FN_REFLEN]; - char tbbuff[FN_REFLEN]; bool create_if_not_exists = create_info->options & HA_LEX_CREATE_IF_NOT_EXISTS; - VOID(tablename_to_filename(db, dbbuff, sizeof(dbbuff))); - VOID(tablename_to_filename(table_name, tbbuff, sizeof(tbbuff))); - if (ha_table_exists_in_engine(thd, dbbuff, tbbuff)) + if (ha_table_exists_in_engine(thd, db, table_name)) { DBUG_PRINT("info", ("Table with same name already existed in handler")); |