Repository navigation
det: EXEC SQL PREPARE FROM literal + EXECUTE name (Part of #4269) - #5594
Merged
Merged
Conversation
…e (Part of #4269) The literal is kept at the PREPARE (which leaves SQLCODE 0, touches no row) and run at each EXECUTE through EXECUTE IMMEDIATE's path. The oracle precompiler takes the same forms; DYNDEMO proves them on Db2. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Owner
Author
|
No description provided. |
squid-protocol
marked this pull request as ready for review
October 19, 2026 10:01
Owner
Author
|
No description provided. |
squid-protocol
enabled auto-merge (squash)
October 19, 2026 10:02
Contributor
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.
What
EXEC SQL PREPARE name FROM '<INSERT ... VALUES literal>'andEXEC SQL EXECUTE name(noUSING) in the det translator (det/sql.py) and the oracle precompiler (tests/tools/equivalence_sql.py). The literal is kept at the PREPARE (which runs a no-op: SQLCODE 0, no row) and run at each EXECUTE through theEXECUTE IMMEDIATEpath (DetSql.savepoint).Checklist: partial [c:fe6377e7] -- DESCRIBE, EXEC SQL CALL, CONNECT, prepared non-INSERT / EXECUTE ... USING / host-variable text left
Class table (dynamic SQL with source-literal text)
No burned estate issues any of these forms (Q4, 2026-10-05 census); proof is on the synthetic DYNDEMO estate.
Evidence
test_sql_dynamic.py+test_sql_whenever.py: 50 passed withEQUIVALENCE_E2E=1(DYNDEMO proven on real Db2 by GnuCOBOL + our stub: F PREPARE 0, G EXECUTE 0, H second EXECUTE -803).pr_gates --fast6/6,--ratchetsall PASS (golden unaffected: translator/test-oracle only).Cross-repo
None.
🤖 Generated with Claude Code