SQL_MODE does not apply when executing a prepare statement
(Doc ID 2439633.1)
Last updated on MAY 25, 2021
Applies to:
MySQL Server - Version 5.7 to 8.0 [Release 5.7 to 8.0]Information in this document applies to any platform.
Disclaimer: Starting from v8.0, some terms have been deprecated. Older releases will only use the deprecated terminology, and new releases will only use new terminology. Please see https://dev.mysql.com/doc/mysqld-version-reference/en/ for a complete list of those changes, and in which minor versions it happened.
Symptoms
Prepared statement allowed non-strict query even STRICT_TRANS_TABLES sql_mode enabled.
In addition, If you use replication with MIX binlog_format, SQL_THREAD got error on replica side as below.
Changes
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |
References |