mysqldude
Error codes › 4112

MySQL & MariaDB error 4112 ER_CREATE_SELECT_WITH_GIPK_DISALLOWED_IN_SBR

Same number, two different errors. 4112 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLGenerating an invisible primary key for a table created using CREATE TABLE ... SELECT ... is disallowed when binlog_format=STATEMENT. It cannot be guaranteed that the SELECT retrieves rows in the same order on source and replica. Therefore, it cannot be guaranteed that the value generated for the generated implicit primary key column will be the same on source and replica for all rows. Use binlog_format=ROW or MIXED to execute this statement.
MariaDBIncorrect system-version range '…' value: '…' and '…' value: '…'
MySQLMariaDB
SymbolER_CREATE_SELECT_WITH_GIPK_DISALLOWED_IN_SBRER_WRONG_VERSIONING_RANGE
SQLSTATEHY000HY000
TypeServer errorServer error
Versionssince 8.0.30 activesince 10.3.39 active
How the message changed between versions
MariaDB fromSymbolMessage
10.3.39ER_UNUSED_23You should never see it
11.4.14ER_WRONG_VERSIONING_RANGEIncorrect system-version range '%-.32s' value: '%-.128T' and '%-.32s' value: '%-.128T'
11.8.10ER_WRONG_VERSIONING_RANGEIncorrect system-version range '%-.32s' value: '%-.128sT' and '%-.32s' value: '%-.128sT'