8000 fix(prepared): keep a literal :as-of / :valid-at when binding slots (#603) by adityamukho · Pull Request #605 · project-minigraf/minigraf · GitHub
[go: up one dir, main page]

Skip to content

fix(prepared): keep a literal :as-of / :valid-at when binding slots (#603) - #605

Merged
adityamukho merged 1 commit into
mainfrom
fix/603-prepared-temporal-v2
Oct 15, 2026
Merged

adityamukho merged 1 commit into
mainfrom
fix/603-prepared-temporal-v2

Conversation

@adityamukho
Copy link
Copy Markdown
Collaborator

Backport to v2.x of #604 (issue #603, data-integrity: it stays open until the v2.x patch is released).

prepared::substitute used query.as_of.take() / query.valid_at.take() before matching a slot, so a literal :as-of (counter or timestamp), :valid-at or :any-valid-time in a prepared query was dropped, and PreparedQuery::execute ran at the current transaction time and valid now. The fix replaces the field only when it is a slot. Present since 0ef578e (2026-04-04).

Same fix and tests as on v3, minus the prepared-cursor check (PreparedQuery::query is v3 only): prepared_literal_as_of_and_valid_at_are_kept compares execute and a prepared execute for each literal form (verified to fail without the fix), plus a substitute unit test. cargo test: 1253 (1244 passed, 9 ignored). CHANGELOG [Unreleased] Fixed entry; counts in CLAUDE.md, README, TEST_COVERAGE.

🤖 Generated with Claude Code

https://claude.ai/code/session_01HyLscCUuJ1GQpdAeX79EdR

…603)

Backport of the v3 fix: substitute() took query.as_of and query.valid_at out
before matching a slot, so a literal :as-of, :valid-at or :any-valid-time in
a prepared query was dropped. Only a slot is replaced now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HyLscCUuJ1GQpdAeX79EdR
@codecov
codecov Bot commented Oct 15, 2026
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@adityamukho
adityamukho merged commit 28f4a4e into main Oct 15, 2026
22 checks passed
@adityamukho
adityamukho deleted the fix/603-prepared-temporal-v2 branch October 15, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0