1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-16708: Unsupported commands for prepared statements

Write a log event to the general log before executing a statemment in PS mode
This change fixes failure of the test main.log_tables when it is run in PS mode

Updated the test main.events_logs_tests to query mysql.general_log
for the command_type 'Query' and 'Execute' in order to have consistent
test result both in case the test is run with --ps-protocol and without it
This commit is contained in:
Dmitry Shulga
2021-04-27 16:49:17 +07:00
committed by Sergei Golubchik
parent 7586eead5d
commit aeca826c5f
5 changed files with 34 additions and 30 deletions

View File

@ -988,7 +988,8 @@ prepare long_query from "select ? as long_query";
execute long_query using @lparam;
--enable_result_log
set global general_log = off;
select command_type, argument from mysql.general_log where thread_id = @thread_id;
select argument from mysql.general_log where thread_id = @thread_id
AND (command_type = 'Query' OR command_type= 'Execute');
deallocate prepare long_query;
set global general_log = @old_general_log;