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

[seata-java] 修复InsertOnDuplicateUpdate无法拦截无主键和唯一索引的SQL #707

Open
luky116 opened this issue Nov 23, 2024 · 2 comments

Comments

@luky116
Copy link
Contributor

luky116 commented Nov 23, 2024

What happened:

apache/incubator-seata#5078

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

@Code-Fight
Copy link
Contributor

pls assign to me

@Code-Fight
Copy link
Contributor

Code-Fight commented Nov 24, 2024

I tried to reproduce the issue mentioned in the report using MySQL. Currently, I found that when performing operations on a table without a primary key, it immediately gets blocked and prompts: "Could not find any index in the table: xxx."

The relevant part of the code is as follows:
`
indexes, err := m.getIndexes(ctx, dbName, tableName, conn)

if err != nil {

	return nil, errors.Wrapf(err, "Could not found any index in the table: %s", tableName)

}

`

Therefore, I believe this issue might not exist in seata-go, or you could provide additional information for me to attempt reproducing it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants