~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to mysql-test/r/log_output_func.result

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
'#--------------------FN_DYNVARS_065_01-------------------------#'
 
2
SET @@global.log_output = 'NONE';
 
3
'connect (con1,localhost,root,,,,)'
 
4
'connection con1'
 
5
SELECT @@global.log_output;
 
6
@@global.log_output
 
7
NONE
 
8
SET @@global.log_output = 'TABLE,FILE';
 
9
'connect (con2,localhost,root,,,,)'
 
10
'connection con2'
 
11
SELECT @@global.log_output;
 
12
@@global.log_output
 
13
FILE,TABLE
 
14
'#--------------------FN_DYNVARS_065_02-------------------------#'
 
15
'connection con1'
 
16
'---Checking general_log when log_output is NONE---'
 
17
SET @@global.log_output = 'NONE';
 
18
TRUNCATE TABLE mysql.general_log;
 
19
DROP TABLE IF EXISTS t1;
 
20
CREATE TABLE t1(a INT);
 
21
INSERT INTO t1 value(1);
 
22
SELECT 'abc';
 
23
abc
 
24
abc
 
25
SELECT count(*) FROM mysql.general_log;
 
26
count(*)
 
27
0
 
28
'---Checking general_log when log_output is TABLE---'
 
29
SET @@global.log_output = 'TABLE';
 
30
TRUNCATE TABLE mysql.general_log;
 
31
DROP TABLE IF EXISTS t1;
 
32
create table t1(a int);
 
33
INSERT INTO t1 value(1);
 
34
SELECT 'abc';
 
35
abc
 
36
abc
 
37
SELECT count(*) from mysql.general_log;
 
38
count(*)
 
39
5
 
40
'Bug#35371: Changing general_log file is crashing server'
 
41
'SET @@global.general_log_file = @log_file;'
 
42
SET @@global.log_output = 'FILE';
 
43
TRUNCATE TABLE mysql.general_log;
 
44
DROP TABLE IF EXISTS t1;
 
45
create table t1(a int);
 
46
INSERT INTO t1 value(1);
 
47
SELECT 'abc';
 
48
abc
 
49
abc
 
50
SELECT count(*) from mysql.general_log;
 
51
count(*)
 
52
0
 
53
DROP TABLE t1;