mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix for Bug#37766: Inserted review results.
Reason for the failing test was that "SELECT count(*) from mysql.general_log;" was not always the same number. That was fixed by "...count(*)>4..." as the minimal fulfilled condition. As Bug 35371 was fixed the testcase with "log_output = 'FILE'" was enabled and changed to have always the same result.
This commit is contained in:
@ -1,13 +1,11 @@
|
||||
SET @start_value= @@global.log_output;
|
||||
SET @start_general_log= @@global.general_log;
|
||||
SET @start_general_log_file= @@global.general_log_file;
|
||||
'#--------------------FN_DYNVARS_065_01-------------------------#'
|
||||
SET @@global.log_output = 'NONE';
|
||||
'connect (con1,localhost,root,,,,)'
|
||||
'connection con1'
|
||||
SELECT @@global.log_output;
|
||||
@@global.log_output
|
||||
NONE
|
||||
SET @@global.log_output = 'TABLE,FILE';
|
||||
'connect (con2,localhost,root,,,,)'
|
||||
'connection con2'
|
||||
SELECT @@global.log_output;
|
||||
@@global.log_output
|
||||
FILE,TABLE
|
||||
@ -18,7 +16,7 @@ SET @@global.log_output = 'NONE';
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1(a INT);
|
||||
INSERT INTO t1 value(1);
|
||||
INSERT INTO t1 VALUE(1);
|
||||
SELECT 'abc';
|
||||
abc
|
||||
abc
|
||||
@ -29,25 +27,33 @@ count(*)
|
||||
SET @@global.log_output = 'TABLE';
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
create table t1(a int);
|
||||
INSERT INTO t1 value(1);
|
||||
CREATE TABLE t1(a int);
|
||||
INSERT INTO t1 VALUE(1);
|
||||
SELECT 'abc';
|
||||
abc
|
||||
abc
|
||||
SELECT count(*) from mysql.general_log;
|
||||
count(*)
|
||||
5
|
||||
'Bug#35371: Changing general_log file is crashing server'
|
||||
'SET @@global.general_log_file = @log_file;'
|
||||
SELECT count(*)>4 FROM mysql.general_log;
|
||||
count(*)>4
|
||||
1
|
||||
SET @@global.general_log = 'OFF';
|
||||
FLUSH LOGS;
|
||||
SET @@global.general_log_file = 'MYSQLTEST_VARDIR/run/mytest.log';
|
||||
SET @@global.general_log = 'ON';
|
||||
SET @@global.log_output = 'FILE';
|
||||
TRUNCATE TABLE mysql.general_log;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
create table t1(a int);
|
||||
INSERT INTO t1 value(1);
|
||||
CREATE TABLE t1(a INT);
|
||||
INSERT INTO t1 VALUE(1);
|
||||
SELECT 'abc';
|
||||
abc
|
||||
abc
|
||||
SELECT count(*) from mysql.general_log;
|
||||
SELECT count(*) FROM mysql.general_log;
|
||||
count(*)
|
||||
0
|
||||
DROP TABLE t1;
|
||||
connection default;
|
||||
SET @@global.general_log= 'OFF';
|
||||
SET @@global.general_log_file= @start_general_log_file;
|
||||
SET @@global.log_output= @start_value;
|
||||
SET @@global.general_log= @start_general_log;
|
||||
SET @@global.general_log= 'ON';
|
||||
|
Reference in New Issue
Block a user