Commit 3eb2a265 authored by Alexey Botchkov's avatar Alexey Botchkov

MDEV-14185 CREATE TEMPORARY TABLE AS SELECT causes error 1290 with read_only and InnoDB.

condition fixed.
parent d6f3a006
......@@ -3770,7 +3770,7 @@ int
handler::ha_create_handler_files(const char *name, const char *old_name,
int action_flag, HA_CREATE_INFO *info)
{
if (!info || !(info->options & HA_LEX_CREATE_TMP_TABLE))
if (!opt_readonly || !info || !(info->options & HA_LEX_CREATE_TMP_TABLE))
mark_trx_read_write();
return create_handler_files(name, old_name, action_flag, info);
......
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