Skip to content

Commit

Permalink
Merge pull request #2440 from actiontech/fix-issue2433-cherrypick
Browse files Browse the repository at this point in the history
Fix issue2433 cherrypick
  • Loading branch information
ColdWaterLW authored May 31, 2024
2 parents f66cb1c + 98d8f32 commit 386c687
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqle/driver/mysql/rollback.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ func (i *MysqlDriverImpl) generateUpdateRollbackSql(stmt *ast.UpdateStmt) (strin
}
if isPk {
if isPkChanged {
where = append(where, fmt.Sprintf("%s = '%s'", name, pkValue))
where = append(where, fmt.Sprintf("%s = %s", name, pkValue))
} else {
where = append(where, fmt.Sprintf("%s = %s", name, v))

Expand Down

0 comments on commit 386c687

Please sign in to comment.