You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BUG#11758263 50440: MARK UNORDERED UPDATE WITH AUTOINC UNSAFE
Problem: Statements that write to tables with auto_increment columns
based on the selection from another table, may lead to master
and slave going out of sync, as the order in which the rows
are retrived from the table may differ on master and slave.
Solution: We mark writing to a table with auto_increment table
as unsafe. This will cause the execution of such statements to
throw a warning and forces the statement to be logged in ROW if
the logging format is mixed.
Changes:
1. All the statements that writes to a table with auto_increment
column(s) based on the rows fetched from another table, will now
be unsafe.
2. CREATE TABLE with SELECT will now be unsafe.
Copy file name to clipboardExpand all lines: sql/share/errmsg-utf8.txt
+8
Original file line number
Diff line number
Diff line change
@@ -6486,3 +6486,11 @@ ER_PLUGIN_NO_UNINSTALL
6486
6486
6487
6487
ER_PLUGIN_NO_INSTALL
6488
6488
eng "Plugin '%s' is marked as not dynamically installable. You have to stop the server to install it."
6489
+
6490
+
6491
+
ER_BINLOG_UNSAFE_WRITE_AUTOINC_SELECT
6492
+
eng "Statements 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."
6493
+
6494
+
ER_BINLOG_UNSAFE_CREATE_SELECT_AUTOINC
6495
+
eng "CREATE TABLE... SELECT... on a table with an auto-increment column is unsafe because the order in which rows are retrieved by the SELECT determines which (if any) rows are inserted. This order cannot be predicted and may differ on master and the slave."
0 commit comments