mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Conflicts: - mysql-test/suite/rpl/r/rpl_binlog_grant.result - mysql-test/suite/rpl/r/rpl_sp.result - mysql-test/suite/rpl/t/rpl_binlog_grant.test - sql/sql_parse.cc - sql/sql_table.cc - sql/sql_test.cc
47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
SET @start_global_value = @@global.sql_log_update;
|
|
SELECT @start_global_value;
|
|
@start_global_value
|
|
1
|
|
select @@global.sql_log_update;
|
|
@@global.sql_log_update
|
|
1
|
|
select @@session.sql_log_update;
|
|
@@session.sql_log_update
|
|
1
|
|
show global variables like 'sql_log_update';
|
|
Variable_name Value
|
|
sql_log_update ON
|
|
show session variables like 'sql_log_update';
|
|
Variable_name Value
|
|
sql_log_update ON
|
|
select * from information_schema.global_variables where variable_name='sql_log_update';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
SQL_LOG_UPDATE ON
|
|
select * from information_schema.session_variables where variable_name='sql_log_update';
|
|
VARIABLE_NAME VARIABLE_VALUE
|
|
SQL_LOG_UPDATE ON
|
|
set global sql_log_update=1;
|
|
Warnings:
|
|
Note 1315 The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored. This option will be removed in MySQL 5.6.
|
|
select @@global.sql_log_update;
|
|
@@global.sql_log_update
|
|
1
|
|
set session sql_log_update=ON;
|
|
Warnings:
|
|
Note 1315 The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored. This option will be removed in MySQL 5.6.
|
|
select @@session.sql_log_update;
|
|
@@session.sql_log_update
|
|
1
|
|
set global sql_log_update=1.1;
|
|
ERROR 42000: Incorrect argument type to variable 'sql_log_update'
|
|
set global sql_log_update=1e1;
|
|
ERROR 42000: Incorrect argument type to variable 'sql_log_update'
|
|
set global sql_log_update="foo";
|
|
ERROR 42000: Variable 'sql_log_update' can't be set to the value of 'foo'
|
|
SET @@global.sql_log_update = @start_global_value;
|
|
Warnings:
|
|
Note 1315 The update log is deprecated and replaced by the binary log; SET SQL_LOG_UPDATE has been ignored. This option will be removed in MySQL 5.6.
|
|
SELECT @@global.sql_log_update;
|
|
@@global.sql_log_update
|
|
1
|