Browse Source

Fix syntax of postgres update queries

master
Garrett Mills 1 month ago
parent
commit
cf0ae260dc
  1. 2
      package.json
  2. 2
      src/orm/dialect/PostgreSQLDialect.ts

2
package.json

@ -1,6 +1,6 @@
{
"name": "@extollo/lib",
"version": "0.9.49",
"version": "0.9.50",
"description": "The framework library that lifts up your code.",
"main": "lib/index.js",
"types": "lib/index.d.ts",

2
src/orm/dialect/PostgreSQLDialect.ts

@ -335,7 +335,7 @@ export class PostgreSQLDialect extends SQLDialect {
sets.push(` "${key}" = ${this.escape(data[key])}`)
}
return ['SET', ...sets].join('\n')
return `SET\n${sets.join(',\n')}`
}
public renderCreateTable(builder: TableBuilder): string {

Loading…
Cancel
Save