Skip to content

Commit

Permalink
Merge pull request #1349 from ponder-sh/kjs/get-intervals
Browse files Browse the repository at this point in the history
fix: postgres version regression
  • Loading branch information
kyscott18 authored Dec 16, 2024
2 parents f552e79 + 4b18d8d commit 9f851a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shiny-masks-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"ponder": patch
---

Fixed an issue leading to "could not determine data type of parameter" for some postgres versions.
2 changes: 1 addition & 1 deletion packages/core/src/sync-store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export const createSyncStore = ({
)
.select([
sql<string>`range_agg(unnested.blocks)`.as("merged_blocks"),
sql<string>`${i}`.as("filter"),
sql.raw<string>(`${i}`).as("filter"),
]);
// @ts-ignore
query = query === undefined ? _query : query.unionAll(_query);
Expand Down

0 comments on commit 9f851a4

Please sign in to comment.