Skip to content

Commit

Permalink
fix update
Browse files Browse the repository at this point in the history
  • Loading branch information
iliyan-velichkov committed Jun 17, 2024
1 parent 8943477 commit 23eefd1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion DirigibleDatabaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export class DirigibleDatabaseClient implements DB.DatabaseClient {
.table(options.table)//
.build();

sqlUpdate = sqlUpdate + ` SET ${options.set.join(", ")} WHERE ${options.where}`;
// sqlUpdate already contains SET
sqlUpdate = sqlUpdate + ` ${options.set.join(", ")} WHERE ${options.where}`;
return this.executeUpdate(sqlUpdate);
}

Expand Down

0 comments on commit 23eefd1

Please sign in to comment.