mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-25576: The statement EXPLAIN running as regular statement and as prepared statement produces different results for UPDATE with subquery
10.6 cleanup
This commit is contained in:
committed by
Sergei Golubchik
parent
f536974b73
commit
5478ca779a
@@ -4773,6 +4773,19 @@ public:
|
||||
bool resolve_references_to_cte(TABLE_LIST *tables,
|
||||
TABLE_LIST **tables_last);
|
||||
|
||||
/**
|
||||
Turn on the SELECT_DESCRIBE flag for every SELECT_LEX involved into
|
||||
the statement being processed in case the statement is EXPLAIN UPDATE/DELETE.
|
||||
|
||||
@param lex current LEX
|
||||
*/
|
||||
|
||||
void promote_select_describe_flag_if_needed()
|
||||
{
|
||||
if (describe)
|
||||
builtin_select.options |= SELECT_DESCRIBE;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user