mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
post-merge: --ps-protocol fixes
Includes: MDEV-17302 Add support for ALTER USER command in prepared statement and MDEV-17673 main.cte_recursive fails in bb-10.4-ps branch in --ps Set correct SELECT_LEX linkage for recursive CTEs. Do not delegate this job to TABLE_LIST::set_as_with_table, because it is only run on prepare, while With_element::move_anchors_ahead is run both on prepare and execute (fix by Igor)
This commit is contained in:
@ -2479,8 +2479,11 @@ void log_slow_statement(THD *thd)
|
||||
if (!thd->enable_slow_log)
|
||||
goto end; // E.g. SP statement
|
||||
|
||||
DBUG_EXECUTE_IF("simulate_slow_query",
|
||||
thd->server_status|= SERVER_QUERY_WAS_SLOW;);
|
||||
DBUG_EXECUTE_IF("simulate_slow_query", {
|
||||
if (thd->get_command() == COM_QUERY ||
|
||||
thd->get_command() == COM_STMT_EXECUTE)
|
||||
thd->server_status|= SERVER_QUERY_WAS_SLOW;
|
||||
});
|
||||
|
||||
if (((thd->server_status & SERVER_QUERY_WAS_SLOW) ||
|
||||
((thd->server_status &
|
||||
|
Reference in New Issue
Block a user