mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 18:20:07 +01:00
sql_table.cc re-apply a lost change where we check to see if the
sql_table.cc table handler supports temporary tables
This commit is contained in:
parent
16a1120d6e
commit
f614f19e88
2 changed files with 8 additions and 8 deletions
|
@ -1,8 +1 @@
|
|||
heikki@donna.mysql.fi
|
||||
jani@janikt.pp.saunalahti.fi
|
||||
monty@hundin.mysql.fi
|
||||
mwagner@evoq.mwagner.org
|
||||
paul@central.snake.net
|
||||
sasha@mysql.sashanet.com
|
||||
serg@serg.mysql.com
|
||||
paul@teton.kitebird.com
|
||||
mikef@nslinuxw4.bedford.progress.com
|
||||
|
|
|
@ -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++))
|
||||
|
|
Loading…
Add table
Reference in a new issue