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

test:on duplicate update #7401

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

test:on duplicate update #7401

wants to merge 3 commits into from

Conversation

zzuts
Copy link

@zzuts zzuts commented Mar 26, 2025

  • Tested

What did this pull request do?

关于on duplicate key update 后scan 的bug 测试样例

User Case Description

如果on duplicate key update 执行的是 price = price+ 0 这样无改动的语句时,后面再执行Scan。会把sql中所有记录扫出来,Debug()一下,发现执行的是SELECT * FROMproductsWHEREproducts.deleted_at IS NULL

@zzuts zzuts mentioned this pull request Mar 26, 2025
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.

1 participant