Skip to content

Commit

Permalink
Fix syntax error in rollback column (#2151)
Browse files Browse the repository at this point in the history
* Fix syntax error in rollback column
  • Loading branch information
scottafk authored Mar 26, 2024
1 parent b24fbda commit 9c028b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/rollback/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ func rollbackUpdatedRow(tx map[string]string, where string, dbTx *sqldb.DbTransa
}
addSQLUpdate := ""
for k, v := range rollbackInfo {
k = `"` + strings.Trim(k, `"`) + `"`
if v == "NULL" {
addSQLUpdate += k + `=NULL,`
} else if syspar.IsByteColumn(tx["table_name"], k) && len(v) != 0 {
Expand Down

0 comments on commit 9c028b0

Please sign in to comment.