You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b4255c5
Browse filesBrowse the repository at this point in the historyBrowse files
fix(codegen-ts): join an unenforced required reference LEFT OUTER in projection views
#209 made a belongs-to hop INNER when its FK field is @required, since
every base row then has a match. That holds only when a constraint
enforces the reference. Under @Enforce: false the column can name a row
that does not exist, and INNER silently drops the base row from the view.
Found reviewing an adopter's view migration: an account ref_id that holds
a user id or a group id joined INNER to the user table.
The hop is INNER only when the reference is also enforced; otherwise
LEFT OUTER. The nested-chain demotion is unchanged. MetaReferenceIdentity's
doc comment, which said projection join inference ignores @Enforce, is
corrected.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1mRRB1K2WdYy82kntMQdx
0 commit comments