diff --git a/server/modules/routing/binlogrouter/blr_slave.c b/server/modules/routing/binlogrouter/blr_slave.c index 6e349401e..5cc21c90e 100644 --- a/server/modules/routing/binlogrouter/blr_slave.c +++ b/server/modules/routing/binlogrouter/blr_slave.c @@ -583,7 +583,7 @@ blr_skip_leading_sql_comments(const char *sql_query) * SHOW [GLOBAL] STATUS LIKE 'Uptime' * SHOW BINARY LOGS * - * 12 set commands are supported: + * 13 set commands are supported: * SET @master_binlog_checksum = @@global.binlog_checksum * SET @master_heartbeat_period=... * SET @slave_slave_uuid=... @@ -596,6 +596,7 @@ blr_skip_leading_sql_comments(const char *sql_query) * SET @slave_connect_state= * SET @slave_gtid_strict_mode= * SET @slave_gtid_ignore_duplicates= + * SET SQL_MODE='' * * 4 administrative commands are supported: * STOP SLAVE @@ -7645,6 +7646,11 @@ static bool blr_handle_set_stmt(ROUTER_INSTANCE *router, return true; } } + else if (strcasecmp(word, "SQL_MODE") == 0) + { + blr_slave_send_ok(router, slave); + return true; + } return false; }