Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ddd): fix mysql diff with json #24

Merged
merged 8 commits into from May 20, 2024

Conversation

archever
Copy link
Contributor

fix update entity while no field changed

@archever archever force-pushed the ljh/fix-diff branch 3 times, most recently from f60ad9e to c5f3f92 Compare March 11, 2024 07:31
if entity.GetID() == "" && parent.GetID() == "" {
return fmt.Errorf("entity to build must has id")
}
// if entity.GetID() == "" && parent.GetID() == "" {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里为啥要注释,没有id可以build么

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

上游传的 parent 是 nil, 这里会报错. parent 和 entity 的关系是通过 parentID. 关联的, 所以 entity 这里是没有ID 的

@liqiankun1111 liqiankun1111 merged commit 335d1a7 into bytedance:main May 20, 2024
liqiankun1111 added a commit that referenced this pull request May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants