Skip to content

equivalence: XFRFUN on generated Db2 rows; harness logs a client-refused bind as -180 (Part of #4507) - #5537

Merged
squid-protocol merged 1 commit into
mainfrom
churn/4507-xfrfun-generated
Oct 18, 2026
Merged

squid-protocol merged 1 commit into
mainfrom
churn/4507-xfrfun-generated

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Summary

cbsa-xfrfun-generated: CBSA's XFRFUN on 30 generated ACCOUNT rows (CRETB01/CREI101/CRETB02), 40 generated LINKs plus 4 hand scenarios, compare_sql on. Det-port PROVED on 49 scenarios, 27/28 paragraphs, 45/81 branches; SQLCODEs seen 0, +100, -180. ACCOUNT, PROCTRAN and ABNDFILE compared after every task.

The earlier draft differed on a generated NULL-date TO read: the UPDATE that follows is rejected by Db2 (-180 / 22007), but IBM's JDBC driver refuses the unset date on the client (-4220), so the Java outcome log held no statement. The runtime already maps that exception to -180 (#4658). Fix: EquivalenceDb2Config (tests/tools/equivalence_db2.py) now records that statement with Db2's answer. No data narrowed, no comparison loosened.

Class table (CBSA programs on hand-written seed.sql, item a7f4b905)

member status
delacc, acctctrl, inqacccu, dbcrfun done earlier (#5496, #5510, #5519)
xfrfun done here
crecust open: CUSTOMER/CONTROL tables (CRETB03, CREI301), credit-check children
bnk1cac/uac/cca/ccs/cra/dac/tfn open: screen cases, need a generated screen driver
creacc, delcus, bnkmenu open (also on seed.sql)

PROCTRAN has no foreign key in CRETB02, so no new FK generation was needed for ACCOUNT/PROCTRAN programs.

Checklist: partial [c:a7f4b905] -- crecust-generated (multi-table CUSTOMER/CONTROL rows) and the bnk1* generated screen cases remain

Gates

pr_gates --fast 6/6, --ratchets 8/8 (JDK 17), new e2e test and unit test pass, tree-wide guards pass. Golden masters not touched (no parsing change). The harness:db2 fingerprint moved, so other Db2 evidence/ledger entries show a stale-harness warning until the scheduled refresh.

Lessons for agents

  • A JDBC bind refused client-side (-4220) never reaches execute*, so the Java compare_sql log misses a statement COBOL's Db2 logged; handle it in the EquivalenceDb2Config proxy, not by changing data.

🤖 Generated with Claude Code

…sed bind as Db2's -180 (Part of #4507)

cbsa-xfrfun-generated: 30 generated ACCOUNT rows, 40 generated LINKs, compare_sql on.
The earlier draft differed on a NULL-date TO read: the UPDATE that follows is rejected
by Db2 (-180 / 22007) but the JDBC driver refuses the unset date on the client, so the
Java outcome log held no statement. EquivalenceDb2Config now records that statement with
Db2's answer; the translator already maps the exception to -180. Proved on 49 scenarios,
27/28 paragraphs, 45/81 branches.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 18, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 18, 2026 21:39
@squid-protocol
squid-protocol enabled auto-merge (squash) October 18, 2026 21:45
@squid-protocol
squid-protocol merged commit 1f8f94e into main Oct 18, 2026
59 checks passed
@squid-protocol
squid-protocol deleted the churn/4507-xfrfun-generated branch October 18, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant