mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
4ebaf81360
Apply the correct pattern for debug instrumentation: SET @save_dbug=@@debug_dbug; SET debug_dbug='+d,...'; ... SET debug_dbug=@save_dbug; Numerous tests use statements of the form SET debug_dbug='-d,...'; which will inadvertently enable all DBUG tracing output, causing unnecessary waste of resources.
34 lines
733 B
Text
34 lines
733 B
Text
#
|
|
# DROP-related tests which execution requires debug server.
|
|
#
|
|
--source include/have_debug.inc
|
|
|
|
###########################################################################
|
|
--echo
|
|
--echo # --
|
|
--echo # -- Bug#43138: DROP DATABASE failure does not clean up message list.
|
|
--echo # --
|
|
--echo
|
|
|
|
CREATE DATABASE mysql_test;
|
|
CREATE TABLE mysql_test.t1(a INT);
|
|
CREATE TABLE mysql_test.t2(b INT);
|
|
CREATE TABLE mysql_test.t3(c INT);
|
|
|
|
--echo
|
|
SET @save_dbug = @@debug_dbug;
|
|
SET SESSION debug_dbug= "+d,bug43138";
|
|
|
|
--echo
|
|
--sorted_result
|
|
DROP DATABASE mysql_test;
|
|
|
|
--echo
|
|
SET SESSION debug_dbug=@save_dbug;
|
|
|
|
--echo
|
|
--echo # --
|
|
--echo # -- End of Bug#43138.
|
|
--echo # --
|
|
|
|
###########################################################################
|