Skip to content

Commit

Permalink
This should be cast to text... But then we need to fix reading it
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Dec 3, 2024
1 parent 3155706 commit b3bcbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grafast/dataplan-pg/src/steps/pgSelect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1844,7 +1844,7 @@ and ${sql.indent(sql.parens(condition(i + 1)))}`}
const baseQuery = sql`${select}${from}${join}${where}${groupBy}${having}${orderBy}${limitAndOffset}`;
const query = options.asJsonAgg
? // 's' for 'subquery'
sql`array(${sql.indent(baseQuery)})`
sql`array(${sql.indent(baseQuery)})::text`
: baseQuery;

return { sql: query, extraSelectIndexes };
Expand Down

0 comments on commit b3bcbaa

Please sign in to comment.