2008-04-10 15:14:28 +02:00
|
|
|
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');
|
2008-05-30 11:12:07 +02:00
|
|
|
## There should be a difference ##
|
2008-12-13 19:42:12 +00:00
|
|
|
SET @@global.max_allowed_packet= 1024*1024*1024;
|
2008-11-27 15:15:14 +03:00
|
|
|
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)
|
2008-05-30 11:12:07 +02:00
|
|
|
1
|
2008-04-10 15:14:28 +02:00
|
|
|
## Dropping tables ##
|
|
|
|
DROP TABLE t1;
|