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#11748842:CREATE TABLE: NO WARNING IF REQUESTED DUPLICATE INDEX FOR
THE SAME COLUMN.
Analysis:
--------
Creation of duplicate index is allowed since the logic to detect the
duplicate index has not been implemented.
Fix:
---
A new member 'key_is_set_by_user' has been added to struct
KEY_CREATE_INFO. This member is set when a index is created
or modified by the user. An SQL-condition of the WARNING level
is reported upon execution of such a DDL statement if all
the following conditions are satisfied:
a) Index types[BTREE|HASH] are the same.
b) Key constraint/indexes are the same.
c) The constraint/indexes fields are in the same order.
However this does not apply to the foreign key constraint.
The SQL-condition is propagated to the ERROR level
under the STRICT mode condition.
Copy file name to clipboardExpand all lines: mysql-test/extra/rpl_tests/rpl_loaddata.test
+4-4
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ save_master_pos;
70
70
connection slave;
71
71
# 1062 = ER_DUP_ENTRY
72
72
call mtr.add_suppression("Slave SQL.*Error .Duplicate entry .10. for key .b.. on query.* Error_code: 1062");
73
-
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.*error code=1062.*Error on slave:.*Error_code: 1833");
73
+
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.*error code=1062.*Error on slave:.*Error_code: 1834");
74
74
call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
Copy file name to clipboardExpand all lines: mysql-test/extra/rpl_tests/rpl_stm_EE_err2.test
+3-3
Original file line number
Diff line number
Diff line change
@@ -24,13 +24,13 @@ insert into t1 values(1),(2);
24
24
drop table t1;
25
25
26
26
connection slave;
27
-
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.* error code=1062.*Error on slave:.* Error_code: 1833");
27
+
call mtr.add_suppression("Slave SQL.*Query caused different errors on master and slave.*Error on master:.* error code=1062.*Error on slave:.* Error_code: 1834");
28
28
call mtr.add_suppression("The slave coordinator and worker threads are stopped, possibly leaving data in inconsistent state");
29
29
30
30
--echo (expect different error codes on master and slave)
31
31
# ER_MTS_INCONSISTENT_DATA
32
-
#1833 = ER_INCONSISTENT_ERROR
33
-
--let $slave_sql_errno= 1833,1756
32
+
#1834 = ER_INCONSISTENT_ERROR
33
+
--let $slave_sql_errno= 1834,1756
34
34
# can't print error text. MTS reports a separate error in this case.
0 commit comments