apache / incubator-seata-go

Go Implementation For Seata
https://seata.apache.org/
Apache License 2.0
1.56k stars 283 forks source link

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

Open luky116 opened 3 days ago

luky116 commented 3 days ago

What happened:

https://github.com/apache/incubator-seata/pull/5078

What you expected to happen:

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

Anything else we need to know?:

Code-Fight commented 2 days ago

pls assign to me

Code-Fight commented 1 day ago

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.