Fix syntax of postgres update queries

This commit is contained in:
2022-06-29 22:14:00 -05:00
parent fe9170282f
commit cf0ae260dc
2 changed files with 2 additions and 2 deletions

View File

@@ -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 {