mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-13711 Assertion failure on CREATE TABLE .. LIKE <sequence>
Fixes two issues: - Update assert in open_and_process_tables to handle sequences - Removed not needed and conflicting mdl_context.release_transactional_locks in sql_sequence.cc. The MDL lock is released at end of mysql_execute_command(). Signed-off-by: Monty <monty@mariadb.org>
This commit is contained in:
@ -3338,9 +3338,9 @@ open_and_process_table(THD *thd, LEX *lex, TABLE_LIST *tables,
|
||||
/*
|
||||
If this TABLE_LIST object has an associated open TABLE object
|
||||
(TABLE_LIST::table is not NULL), that TABLE object must be a pre-opened
|
||||
temporary table.
|
||||
temporary table or SEQUENCE (see sequence_insert()).
|
||||
*/
|
||||
DBUG_ASSERT(is_temporary_table(tables));
|
||||
DBUG_ASSERT(is_temporary_table(tables) || tables->table->s->sequence);
|
||||
}
|
||||
else if (tables->open_type == OT_TEMPORARY_ONLY)
|
||||
{
|
||||
|
Reference in New Issue
Block a user