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

[Bug]: 执行statement没有先后顺序 #162

Open
1 of 2 tasks
y0908105023 opened this issue Jan 23, 2025 · 2 comments
Open
1 of 2 tasks

[Bug]: 执行statement没有先后顺序 #162

y0908105023 opened this issue Jan 23, 2025 · 2 comments

Comments

@y0908105023
Copy link

y0908105023 commented Jan 23, 2025

What happened?

  1. 如果先插入一条数据
  2. 删除这条数据
  3. 在插入这条数据

最终先执行的是两条insert statement,在执行DELETE statement,导致没有数据。如下图

Image

Affects Versions

master/1.16

What are you seeing the problem on?

No response

How to reproduce

No response

Relevant log output

Anything else

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

  • I agree to follow this project's Code of Conduct
@y0908105023
Copy link
Author

@itinycheng 麻烦您看一下

@itinycheng
Copy link
Owner

Hi @y0908105023

addToBatch方法中add record to batch时已经按照主键去重复了;
addValueToBatch时每个主键只有一个record;

Image

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

No branches or pull requests

2 participants