Skip to content

Commit 386c687

Browse files
authored
Merge pull request #2440 from actiontech/fix-issue2433-cherrypick
Fix issue2433 cherrypick
2 parents f66cb1c + 98d8f32 commit 386c687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqle/driver/mysql/rollback.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ func (i *MysqlDriverImpl) generateUpdateRollbackSql(stmt *ast.UpdateStmt) (strin
647647
}
648648
if isPk {
649649
if isPkChanged {
650-
where = append(where, fmt.Sprintf("%s = '%s'", name, pkValue))
650+
where = append(where, fmt.Sprintf("%s = %s", name, pkValue))
651651
} else {
652652
where = append(where, fmt.Sprintf("%s = %s", name, v))
653653

0 commit comments

Comments
 (0)