Fix syntax of postgres update queries
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user