Repository navigation
fix: bind formatQuery params by position, not textual order - #1056
Merged
tdrz merged 1 commit intoAug 12, 2026
Merged
Conversation
formatQuery rewrote $N placeholders as %NL, but format() reads a bare %NL as "min width N" and consumes arguments sequentially. Out-of-order placeholders therefore silently bound the wrong values (live.query and live.incrementalQuery inline params through this path), and a repeated placeholder failed with "too few arguments for format()". Emit the positional %N$L instead. Fixes #1055 Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
Author
|
@tdrz is this not obviously the right fix? If this gets merged I think can retire my fork, which would be lovely :-). |
AntonOfTheWoods
added a commit
to pgxsinkit/pglite
that referenced
this pull request
Aug 18, 2026
Moved pgx-publish back onto upstream/main (0.5.5). initdb-fs-leak (electric-sql#1060) and formatQuery positional-params (electric-sql#1056) merged upstream, so both are dropped from the fork; the remaining stack carries only changes still absent upstream: transaction-end sync (+ already-closed completion), the IDBFS durability hardening and relaxed-concurrency restore, the non-exclusive relaxed-sync latch (scoped), the opfs-ahp instrumentation, and the close() relaxed-sync drain. Conflicts re-applied onto the new base: - pglite.ts close(): kept the IDBFS-hardening deferred-throw structure and folded upstream electric-sql#1059's process.exitCode save/restore into force_exit. - base.ts transaction(): our flag-repositioning + rollback/already-closed sync guards now coexist with upstream electric-sql#1062's closed=true-before-ROLLBACK and checkClosed() gates. Co-Authored-By: Claude Opus 4.8 <[email protected]>
AntonOfTheWoods
added a commit
to pgxsinkit/pglite
that referenced
this pull request
Sep 12, 2026
Moved pgx-publish back onto upstream/main (0.5.5). initdb-fs-leak (electric-sql#1060) and formatQuery positional-params (electric-sql#1056) merged upstream, so both are dropped from the fork; the remaining stack carries only changes still absent upstream: transaction-end sync (+ already-closed completion), the IDBFS durability hardening and relaxed-concurrency restore, the non-exclusive relaxed-sync latch (scoped), the opfs-ahp instrumentation, and the close() relaxed-sync drain. Conflicts re-applied onto the new base: - pglite.ts close(): kept the IDBFS-hardening deferred-throw structure and folded upstream electric-sql#1059's process.exitCode save/restore into force_exit. - base.ts transaction(): our flag-repositioning + rollback/already-closed sync guards now coexist with upstream electric-sql#1062's closed=true-before-ROLLBACK and checkClosed() gates. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
formatQuery rewrote $N placeholders as %NL, but format() reads a bare %NL as "min width N" and consumes arguments sequentially. Out-of-order placeholders therefore silently bound the wrong values (live.query and live.incrementalQuery inline params through this path), and a repeated placeholder failed with "too few arguments for format()". Emit the positional %N$L instead.
Fixes #1055