mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
35cf663250
statements missed from general log A refinement of the test in the previous patch to avoid using sleep as a means to ensure that timestamps are added to the log entries. mysql-test/t/log_tables_debug.test: New test file. A debug feature is used to ensure that log entries are prefixed with a timestamp. sql/log.cc: A debug feature is implemented to ensure that log entries are prefixed with a timestamp.
23 lines
825 B
Text
23 lines
825 B
Text
SET @old_general_log= @@global.general_log;
|
|
SET @old_general_log_file= @@global.general_log_file;
|
|
SET @old_slow_query_log= @@global.slow_query_log;
|
|
SET @old_slow_query_log_file= @@global.slow_query_log_file;
|
|
#
|
|
# Bug#45387 Information about statement id for prepared
|
|
# statements missed from general log
|
|
#
|
|
SET @@global.general_log = ON;
|
|
SET @@global.general_log_file = 'bug45387_general.log';
|
|
SET SESSION debug='+d,reset_log_last_time';
|
|
SET @@global.general_log = @old_general_log;
|
|
SET @@global.general_log_file = @old_general_log_file;
|
|
SET SESSION debug='';
|
|
Bug#45387: ID match.
|
|
End of 5.1 tests
|
|
#
|
|
# Cleanup
|
|
#
|
|
SET global general_log = @old_general_log;
|
|
SET global general_log_file = @old_general_log_file;
|
|
SET global slow_query_log = @old_slow_query_log;
|
|
SET global slow_query_log_file = @old_slow_query_log_file;
|