Skip to content

Commit

Permalink
Merge pull request #2434 from actiontech/fix-issue2433
Browse files Browse the repository at this point in the history
do not use single quotes to wrap pk data
  • Loading branch information
ColdWaterLW authored May 24, 2024
2 parents cb5194e + 0d422f3 commit f766d51
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 @@ -640,7 +640,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 f766d51

Please sign in to comment.