Skip to content

Commit

Permalink
record update non id fields
Browse files Browse the repository at this point in the history
  • Loading branch information
shivajivarma committed Dec 19, 2023
1 parent a336be9 commit 9424df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/query/UpdateQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class UpdateQuery {
if (typeof this.#row !== "undefined") {
const row: any = this.#row;
query += ` SET ${this.#columns.map((column) => {
return `${column} = ${QueryUtils.escapeValue(row[column])}`;
return `"${column}" = ${QueryUtils.escapeValue(row[column])}`;
})}`;
}
if (this.#where.length > 0) {
Expand Down

0 comments on commit 9424df0

Please sign in to comment.