-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bug: when the updated data does not change, there is no need to c…
…heck the constraints (#12753) …check the constraints (#12732) fix bug: when the updated data does not change, there is no need to check the constraints you can repro like: ``` create table f1 (a int primary key); create table c1(aa int primary key, bb int, CONSTRAINT `fk_bb` FOREIGN KEY (`bb`) REFERENCES `f1`(`a`)); insert into f1 values (1); insert into c1 values (1,1); update f1 set a=a; //MO throw error. but MySQL not. this PR will fix it ``` Approved by: @heni02, @badboynt1, @aunjgr
- Loading branch information
1 parent
efb87f6
commit 79ee4c1
Showing
3 changed files
with
88 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters