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
{{ message }}
Repository navigation
[Bug]: insert ignore values reported error Inconsistent with MySQL behavior #15345
NOT NULL violations, invalid type casts, and numeric overflows remain different from MySQL’s permissive INSERT IGNORE conversion behavior. They are outside the accepted scope of this issue and are not treated as foreign-key row-
level ignore defects.
Final conclusion
The intended behavior of #15345 is fixed on current main: INSERT IGNORE processes foreign-key conflicts per row,
drops only invalid rows, and retains other valid rows in the same statement.
The original scenario and all extended foreign-key cases passed. The issue can be closed after merging the MOTR
regression PR.
Activity
ouyuanning commentedon Apr 11, 2024
语法不一致的部分暂不做处理
ouyuanning commentedon Apr 16, 2024
语法不一致的部分暂不做处理
ouyuanning commentedon Apr 19, 2024
语法不一致的部分暂不做处理
ouyuanning commentedon Apr 24, 2024
锦赛统一处理吧。
近期先只处理性能问题就好了。语法的问题,可以留到后面的版本再处理
56 remaining items
slyunnn commentedon Aug 7, 2026
#15345 回归验证结论:通过:外键问题已修复
ck89119 commentedon Aug 11, 2026
@slyunnn 你看下上面我和龙冉的comment
未修复的3个类型是MySQL中不合理的地方,mo不兼容这些,报错是期望行为
slyunnn commentedon Aug 11, 2026
Regression and extended verification for #15345 (2026-08-11)
Verification environment
d01c85974f9540f8baa2e768ca86fea952941fe243c89646245491ef68557699a0e1a394de8b1919is included in this
main.test/issue-15345-insert-ignore-fk8e7bb69a6521491ef9b2e93be7e0f5dea2f64b22Regression verification
Reproduced the original foreign-key scenario:
1and2, plus one row referencing nonexistentparent_id = 4.Result: passed.
Extended verification
Nullable foreign key:
parent_id = NULLwas inserted successfully.parent_id = 9was skipped.Mixed unique-key and foreign-key conflicts:
INSERT IGNOREstatement were inserted.FOREIGN_KEY_CHECKS = 0:MOTR regression
suites/14_issue_regression/t/issue_15345_insert_ignore_fk.testsuites/14_issue_regression/r/issue_15345_insert_ignore_fk.resultScope clarification
NOT NULLviolations, invalid type casts, and numeric overflows remain different from MySQL’s permissiveINSERT IGNOREconversion behavior. They are outside the accepted scope of this issue and are not treated as foreign-key row-level ignore defects.
Final conclusion
The intended behavior of #15345 is fixed on current
main:INSERT IGNOREprocesses foreign-key conflicts per row,drops only invalid rows, and retains other valid rows in the same statement.
The original scenario and all extended foreign-key cases passed. The issue can be closed after merging the MOTR
regression PR.