mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
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 a difference ##
|
|
SET @@global.max_allowed_packet= 1024*1024*1024;
|
|
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)
|
|
1
|
|
## Dropping tables ##
|
|
DROP TABLE t1;
|