Skip to content

Support keyword batches on prepared statements - #59

Merged
quinnj merged 1 commit into
masterfrom
fix/prepared-keyword-batches
Sep 21, 2026
Merged

quinnj merged 1 commit into
masterfrom
fix/prepared-keyword-batches

Conversation

@quinnj

@quinnj quinnj commented Sep 19, 2026

Copy link
Copy Markdown
Member

executemany(conn, sql; id=[1, 2]) works, but the same keyword batch against an already prepared statement raises MethodError. The documented no-parameter executemany(stmt) form also has no method.

Add the prepared-statement keyword wrapper, delegating to the existing batch implementation like the connection form. Keyword batches retain positional field-order semantics. Tests cover batch values, invalid lengths, empty batches, no parameters, cursor cleanup, and keeping the caller's statement open.

Validation: the missing-method reproduction fails on master. Full test suites pass on Julia 1.9.4 and 1.12.6 with four threads.

Co-authored by Codex

@codecov

codecov Bot commented Sep 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.40%. Comparing base (95da06b) to head (80a3fcc).

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
+ Coverage   82.25%   82.40%   +0.14%     
==========================================
  Files           1        1              
  Lines         124      125       +1     
==========================================
+ Hits          102      103       +1     
  Misses         22       22              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@quinnj
quinnj merged commit 53901ea into master Sep 21, 2026
9 checks passed
@quinnj
quinnj deleted the fix/prepared-keyword-batches branch September 21, 2026 12:39
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