summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authormikef@nslinuxw4.bedford.progress.com <>2001-06-06 15:45:07 -0400
committermikef@nslinuxw4.bedford.progress.com <>2001-06-06 15:45:07 -0400
commitf614f19e884aa69996984abd8444edbfd35422a5 (patch)
treee02f10f385d40152fdbbca310ae960ed4ca8c066 /sql/sql_table.cc
parent16a1120d6e56789e256e9a858f0ac509c7b11ed6 (diff)
downloadmariadb-git-f614f19e884aa69996984abd8444edbfd35422a5.tar.gz
sql_table.cc re-apply a lost change where we check to see if the
sql_table.cc table handler supports temporary tables
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index f287481921d..3fa2bc5d9d3 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -221,6 +221,13 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
db_options|=HA_OPTION_PACK_RECORD;
file=get_new_handler((TABLE*) 0, create_info->db_type);
+ if ((create_info->options & HA_LEX_CREATE_TMP_TABLE) &&
+ (file->option_flag() & HA_NO_TEMP_TABLES))
+ {
+ my_error(ER_ILLEGAL_HA,MYF(0),table_name);
+ DBUG_RETURN(-1);
+ }
+
/* Don't pack keys in old tables if the user has requested this */
while ((sql_field=it++))