general_log_func.result 1.1 KB
Newer Older
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
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');
Magnus Svensson's avatar
Magnus Svensson committed
28 29
## There should be a difference ##
SET @@session.max_allowed_packet= 1024*1024*1024;
30 31 32 33
SET @orig_file= load_file('MYSQLD_LOGFILE.orig');
SET @copy_file= load_file('MYSQLD_LOGFILE.copy');
SELECT STRCMP(@orig_file, @copy_file);
STRCMP(@orig_file, @copy_file)
Magnus Svensson's avatar
Magnus Svensson committed
34
1
35 36
## Dropping tables ##
DROP TABLE t1;