Repository navigation
det: EXEC SQL EXECUTE name USING :host-vars for a prepared INSERT (Part of #4269) - #6040
Merged
Merged
Conversation
… VALUES (Part of #4269) Parameter markers in a PREPAREd literal INSERT are bound by EXECUTE ... USING (scalar host variables, optional indicator); the oracle precompiler binds them as Db2 does and DYNDEMO proves it on Db2. Q4 register updated. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…ion (Part of #4269) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 22, 2026 17:50
squid-protocol
enabled auto-merge (squash)
October 22, 2026 17:54
Owner
Author
|
No description provided. |
Contributor
This was referenced Oct 22, 2026
Merged
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.
Part of #4269.
Checklist: partial [c:fe6377e7] -- DESCRIBE, CONNECT, CALL, host-variable statement text (no burned program uses them)
What
EXEC SQL EXECUTE name USING :h1[:i1], ...for a preparedINSERT ... VALUES (?, ...), in the det port and the oracle precompiler, with DYNDEMO scenarios J-M (bound insert, read back, duplicate -803, null indicator -407).Design
The det port inlines the USING values as SQL literals into the statement text sent through the existing
DetSql.savepointpath.DetSql.javais unchanged, so no existing Db2 port's evidence moves. The oracle binds the host variables natively.Assumption (Q4 register): literal substitution is equivalent to parameter binding for string and numeric values in an INSERT VALUES list. Refused with a reason: marker/host count mismatch (-313), host structure,
USING DESCRIPTOR, markers inEXECUTE IMMEDIATE.Class table
Evidence
Translated: DYNDEMO whole, 0 holes. Executed-equivalent: Db2 e2e DYNDEMO output matches the GnuCOBOL/Db2 oracle for scenarios J-M.
pr_gates --fast7/7,--ratchets9/9,audit_checkclear,det_port check170/170 unchanged. Oracle is GnuCOBOL plus our stub and Db2, not z/OS. This is breadth on the synthetic DYNDEMO estate; no burned estate issues dynamic SQL.🤖 Generated with Claude Code