Skip to content

fix(napi): preserve qualified interval parameters - #298

Merged
cathleeny merged 2 commits into
mainfrom
PECOBLR-4169
Aug 26, 2026
Merged

cathleeny merged 2 commits into
mainfrom
PECOBLR-4169

Conversation

@cathleeny

@cathleeny cathleeny commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

The N-API layer previously used TypedValue, and collapsed qualified types like INTERVAL MONTH into generic INTERVAL. Changing to RawParameter presevers the exact SQL type and restores Thrift parity on the NodeJS driver.

  • add ExecuteOptions.rawParams to the N-API binding
  • forward pre-marshalled parameter type names and values through the existing StatementSpec::param_raw path
  • retain the existing typed positional and named parameter APIs for compatibility

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --locked -- -D warnings
  • cargo test --locked --features dyn-symbols
  • .github/scripts/check-napi-loader-drift.sh

Follow-up

After this merges, the Node driver follow-up PR will pin this kernel ref.

@cathleeny cathleeny changed the title fix(napi): preserve qualified interval parameters (PECOBLR-4169) fix(napi): preserve qualified interval parameters Aug 26, 2026
@cathleeny
cathleeny marked this pull request as ready for review August 26, 2026 00:59

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: 1 Low

Looks good — clean, well-scoped napi binding that forwards pre-marshalled rawParams through the existing StatementSpec::param_raw path across all four execute flows. The kernel already enforces raw-vs-typed and positional-vs-named mutual exclusivity (with tests), and the param_raw signature, .d.ts, and doc comments all match. One low note about napi-tier test coverage of the forwarding glue.

Comment thread napi/src/connection.rs Resolved
Signed-off-by: cat23123 <58714163+cat23123@users.noreply.github.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

Comment thread napi/NEXT_CHANGELOG.md Resolved
Comment thread napi/src/params.rs Resolved
Signed-off-by: cat23123 <58714163+cat23123@users.noreply.github.com>

@oss-reviewer-bot oss-reviewer-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No issues identified by the review bot.

@cathleeny
cathleeny added this pull request to the merge queue Aug 26, 2026
Merged via the queue into main with commit bb4a077 Aug 26, 2026
20 of 21 checks passed
@cathleeny
cathleeny deleted the PECOBLR-4169 branch August 26, 2026 18:13

This branch was previously deployed

1 inactive deployment
azure-prod — 2cb44061 Deployed Aug 26, 2026 by cathleeny via followup #1053
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.

2 participants