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:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user