Commit 1145f448 authored by unknown's avatar unknown

Bug #12055 NDB temp tables created by ALTER TABLE are usable

- do not discover temporary files and make them visible

parent abcd8b03
...@@ -1514,6 +1514,8 @@ int ha_discover(THD *thd, const char *db, const char *name, ...@@ -1514,6 +1514,8 @@ int ha_discover(THD *thd, const char *db, const char *name,
int error= -1; // Table does not exist in any handler int error= -1; // Table does not exist in any handler
DBUG_ENTER("ha_discover"); DBUG_ENTER("ha_discover");
DBUG_PRINT("enter", ("db: %s, name: %s", db, name)); DBUG_PRINT("enter", ("db: %s, name: %s", db, name));
if (is_prefix(name,tmp_file_prefix)) /* skip temporary tables */
DBUG_RETURN(error);
#ifdef HAVE_NDBCLUSTER_DB #ifdef HAVE_NDBCLUSTER_DB
if (have_ndbcluster == SHOW_OPTION_YES) if (have_ndbcluster == SHOW_OPTION_YES)
error= ndbcluster_discover(thd, db, name, frmblob, frmlen); error= ndbcluster_discover(thd, db, name, frmblob, frmlen);
......
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