mysqldude
Error codes › 1722

MySQL & MariaDB error 1722 ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT

MySQLStatements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on source and the replica.
MariaDBStatements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave
MySQLMariaDB
SymbolER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECTER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT
SQLSTATEHY000HY000
TypeServer errorServer error
Versionssince 5.5.63 activeevery release since 5.5 active
How the message changed between versions
MySQL fromSymbolMessage
5.5.63ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECTStatements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave.
8.0.36ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECTStatements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on source and the replica.
MariaDB fromSymbolMessage
5.5.68ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECTStatements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave.
10.2.44ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECTStatements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave