MySQL 5.7 replication of session variable "sql_mode" fails -


mysql documentation v5.7 states about replication of variables:

in mysql 5.7, following session variables written binary log , honored replication slave when parsing binary log, regardless of logging format: - sql_mode, (etc.)

however feature not seem working. noticed in development setup , double checked fresh install of 1 master , 2 slaves mysql-sandbox.

data replication works:

$home/sandboxes/rsandbox_mysql-5_7_13/m

master [localhost] {msandbox} ((none)) > use test; master [localhost] {msandbox} (test) > create table test1 (id int(11) unsigned not null); master [localhost] {msandbox} (test) > insert test1 values(1); master [localhost] {msandbox} (test) > select * test1; +----+ | id | +----+ |  1 | +----+ 1 row in set (0.00 sec) 

$home/sandboxes/rsandbox_mysql-5_7_13/s1

slave1 [localhost] {msandbox} (test) > select * test1; +----+ | id | +----+ |  1 | +----+ 1 row in set (0.00 sec) 

however replication of session variable sql_mode not work:

$home/sandboxes/rsandbox_mysql-5_7_13/m

master [localhost] {msandbox} (test) > set @@session.sql_mode = ''; master [localhost] {msandbox} (test) > select @@session.sql_mode; +--------------------+ | @@session.sql_mode | +--------------------+ |                    | +--------------------+ 1 row in set (0.00 sec) 

$home/sandboxes/rsandbox_mysql-5_7_13/s1

slave1 [localhost] {msandbox} (test) > select @@session.sql_mode; +-------------------------------------------------------------------------------------------------------------------------------------------+ | @@session.sql_mode                                                                                                                        | +-------------------------------------------------------------------------------------------------------------------------------------------+ |only_full_group_by,strict_trans_tables,no_zero_in_date,no_zero_date,error_for_division_by_zero,no_auto_create_user,no_engine_substitution | +-------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) 

i searched related bugs in mysql bug tracker, did not find issues.

i know possible database administrator set variable on global basis on each database server. not option @ moment. need feature part of opensource php framework, should have less requirements possible.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -