summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2005-07-20 18:40:55 +0200
committerunknown <tomas@poseidon.ndb.mysql.com>2005-07-20 18:40:55 +0200
commit1145f4485972b309fb1a26ef7faae2e86fbdc3ae (patch)
tree1faa178e73d1e7d98315536a7598bcf43da9f640 /sql/handler.cc
parentabcd8b032cb4afad6640d21e08763349e116da32 (diff)
downloadmariadb-git-1145f4485972b309fb1a26ef7faae2e86fbdc3ae.tar.gz
Bug #12055 NDB temp tables created by ALTER TABLE are usable
- do not discover temporary files and make them visible
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index cb1d88a30d4..e6bc1496a00 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -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
DBUG_ENTER("ha_discover");
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
if (have_ndbcluster == SHOW_OPTION_YES)
error= ndbcluster_discover(thd, db, name, frmblob, frmlen);