blob: 3bbd93f7207d9052f83332bde9d22c38461767b0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
drop table if exists t1;
## Creating new table ##
CREATE TABLE t1
(
id INT NOT NULL auto_increment,
PRIMARY KEY (id),
name VARCHAR(30)
);
'#--------------------FN_DYNVARS_018_01-------------------------#'
## Setting initial value of variable to OFF ##
SET @@global.general_log = OFF;
SELECT @@general_log;
@@general_log
0
## Inserting some Records & Verifying output in log ##
INSERT into t1(name) values('Record_1');
INSERT into t1(name) values('Record_2');
## There should be no difference, case should pass ##
'#--------------------FN_DYNVARS_018_01-------------------------#'
## Setting initial value of variable to OFF ##
SET @@global.general_log = ON;
SELECT @@general_log;
@@general_log
1
## Inserting some Records & Verifying output in log ##
INSERT into t1(name) values('Record_3');
INSERT into t1(name) values('Record_4');
## There should be no difference, case should pass ##
## This case is failing which shows that mysql is writing in general ##
## log when we set general_log to ON ##
## Dropping tables ##
DROP TABLE t1;
|