Fix syntax of postgres update queries
This commit is contained in:
parent
fe9170282f
commit
cf0ae260dc
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@extollo/lib",
|
"name": "@extollo/lib",
|
||||||
"version": "0.9.49",
|
"version": "0.9.50",
|
||||||
"description": "The framework library that lifts up your code.",
|
"description": "The framework library that lifts up your code.",
|
||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"types": "lib/index.d.ts",
|
"types": "lib/index.d.ts",
|
||||||
|
@ -335,7 +335,7 @@ export class PostgreSQLDialect extends SQLDialect {
|
|||||||
sets.push(` "${key}" = ${this.escape(data[key])}`)
|
sets.push(` "${key}" = ${this.escape(data[key])}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
return ['SET', ...sets].join('\n')
|
return `SET\n${sets.join(',\n')}`
|
||||||
}
|
}
|
||||||
|
|
||||||
public renderCreateTable(builder: TableBuilder): string {
|
public renderCreateTable(builder: TableBuilder): string {
|
||||||
|
Loading…
Reference in New Issue
Block a user