test(cloudflare): reproduce numeric D1 local bind failure#828
Closed
jackbisceglia wants to merge 4 commits into
Closed
Conversation
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.
Summary
QueryDatabaseLocalSELECT ? AS valueso the failure is isolated from table schema and seed behaviorExpected failure
This draft intentionally fails against the current PR #807 implementation:
PreparedStatement.bindaccepts native D1 values, but the pinned Distilled D1 request schema models both single and batchparamsasstring[]. The failure occurs during request encoding, before the query reaches Cloudflare.Verification
The existing string-parameter test passes. The dedicated numeric-parameter test creates its temporary D1 database, reaches the Action, fails on
.bind(42)as expected, and deletes the database during cleanup.This PR is stacked on #807 as an executable reproduction; it should become green when the Distilled D1 parameter schema and Local normalization support native D1 values.