mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#27430 Crash in subquery code when in PS and table DDL changed after PREPARE
Add test target to the makefile that will cause all statements to be re-prepared before execution.
This commit is contained in:
@ -3770,16 +3770,17 @@ check_and_update_table_version(THD *thd,
|
||||
/* Always maintain the latest version and type */
|
||||
tables->set_metadata_id(table_share);
|
||||
}
|
||||
#if 0
|
||||
|
||||
#ifndef DBUG_OFF
|
||||
/* Spuriously reprepare each statement. */
|
||||
if (thd->m_metadata_observer && thd->stmt_arena->is_reprepared == FALSE)
|
||||
if (_db_strict_keyword_("reprepare_each_statement") &&
|
||||
thd->m_metadata_observer && thd->stmt_arena->is_reprepared == FALSE)
|
||||
{
|
||||
thd->m_metadata_observer->report_error(thd);
|
||||
return TRUE;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user