Skip to content

Commit

Permalink
fix records
Browse files Browse the repository at this point in the history
  • Loading branch information
mtoy-googly-moogly committed Nov 29, 2024
1 parent 741b5fd commit 99b8cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/malloy/src/dialect/postgres/postgres.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ export class PostgresDialect extends PostgresBase {
sqlLiteralRecord(lit: RecordLiteralNode): string {
const props: string[] = [];
for (const [kName, kVal] of Object.entries(lit.kids)) {
props.push(`${this.sqlMaybeQuoteIdentifier(kName)},${kVal.sql}`);
props.push(`'${kName}',${kVal.sql}`);
}
return `JSONB_BUILD_OBJECT(${props.join(', ')})`;
}
Expand Down

0 comments on commit 99b8cdd

Please sign in to comment.