1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

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

handler::ha_create_handler_files shouldn't call the
mark_trx_read_write() for the temporary table.
This commit is contained in:
Alexey Botchkov
2018-04-07 21:51:15 +04:00
parent 6beb08c7b6
commit d6f3a0064b
3 changed files with 19 additions and 1 deletions

View File

@ -3770,7 +3770,8 @@ int
handler::ha_create_handler_files(const char *name, const char *old_name,
int action_flag, HA_CREATE_INFO *info)
{
mark_trx_read_write();
if (!info || !(info->options & HA_LEX_CREATE_TMP_TABLE))
mark_trx_read_write();
return create_handler_files(name, old_name, action_flag, info);
}