mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
a9538cacda
Fix a regression (due to a typo) which caused spurious incorrect argument errors for long data stream parameters if all forms of logging were disabled (binary, general and slow logs). mysql-test/t/mysql_client_test.test: Save the status of the slow_log. sql/sql_prepare.cc: Add a missing logical NOT operator. tests/mysql_client_test.c: Disable all query logs when running C tests. Fixes a omission when, slow log should have been disabled too. Run test case for Bug#54041 with query logs enabled and disabled.
21 lines
822 B
Text
21 lines
822 B
Text
# This test should work in embedded server after we fix mysqltest
|
|
-- source include/not_embedded.inc
|
|
|
|
SET @old_general_log= @@global.general_log;
|
|
SET @old_slow_query_log= @@global.slow_query_log;
|
|
|
|
# We run with different binaries for normal and --embedded-server
|
|
#
|
|
# If this test fails with "command "$MYSQL_CLIENT_TEST" failed",
|
|
# you should either run mysql_client_test separartely against a running
|
|
# server or run mysql-test-run --debug mysql_client_test and check
|
|
# var/log/mysql_client_test.trace
|
|
|
|
--exec echo "$MYSQL_CLIENT_TEST" > $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1
|
|
--exec $MYSQL_CLIENT_TEST --getopt-ll-test=25600M >> $MYSQLTEST_VARDIR/log/mysql_client_test.out.log 2>&1
|
|
|
|
# End of 4.1 tests
|
|
echo ok;
|
|
|
|
SET @@global.general_log= @old_general_log;
|
|
SET @@global.slow_query_log= @old_slow_query_log;
|