diff options
author | unknown <davi@mysql.com/endora.local> | 2007-12-05 09:48:13 -0200 |
---|---|---|
committer | unknown <davi@mysql.com/endora.local> | 2007-12-05 09:48:13 -0200 |
commit | 6bfa2a01b58a289ea89a49a584412dae6d073c8e (patch) | |
tree | 0b9297137eac8bd4670311317adfdcfcb99a8985 /mysql-test/t/log_tables.test | |
parent | 6923c36a09cf4ea49092767628b62b253d9e6290 (diff) | |
download | mariadb-git-6bfa2a01b58a289ea89a49a584412dae6d073c8e.tar.gz |
Bug#32996 log_tables.test fails sporadically
Only select entries from the general_log that were issued by the current
connection.
mysql-test/r/log_tables.result:
Update test result.
mysql-test/t/log_tables.test:
Only select entries from the current thread.
Diffstat (limited to 'mysql-test/t/log_tables.test')
-rw-r--r-- | mysql-test/t/log_tables.test | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mysql-test/t/log_tables.test b/mysql-test/t/log_tables.test index f02138fb30b..0c986c6d63a 100644 --- a/mysql-test/t/log_tables.test +++ b/mysql-test/t/log_tables.test @@ -811,6 +811,7 @@ SET GLOBAL slow_query_log = @old_slow_log_state; # Bug#21557 entries in the general query log truncated at 1000 characters. # +select CONNECTION_ID() into @thread_id; truncate table mysql.general_log; set @old_general_log_state = @@global.general_log; set global general_log = on; @@ -921,7 +922,7 @@ 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; +select command_type, argument from mysql.general_log where thread_id = @thread_id; deallocate prepare long_query; set global general_log = @old_general_log_state; |