Alex Groleau b49b216b36 fix(queryer): restrict polymorphic bounds compiler to forward edges only
Resolves a query compilation bug in JSPG where reverse/incoming polymorphic
edges (where edge.forward == false, e.g. pet ➡️ cover_attachment) mistakenly
appended the destination type constraint to the parent query's WHERE clause
(e.g., producing `entity_1.type = 'attachment'` on a pet entity query,
causing it to match 0 rows and return null).

- Modifies `compile_polymorphic_bounds` in `compiler.rs` to only compile
  type checks when `edge.forward` is true. For reverse edges, the parent's
  type check does not belong on the parent table and is already implicitly
  restricted by parent ID joins.
- Updates the `fk_attachment_attachable_entity` relation in the queryer test
  fixture to correctly model a two-column polymorphic relation, ensuring
  this code path is exercised by the unit test suite.
2026-07-14 16:02:41 -04:00
2026-04-03 19:24:21 -04:00
2026-03-18 22:04:29 -04:00
2026-03-17 18:00:36 -04:00
2026-07-07 12:42:05 -04:00
2026-04-20 09:56:46 -04:00
2025-04-14 16:11:44 -04:00
2025-11-18 16:08:43 -05:00
2026-04-13 22:44:18 -04:00
2026-02-17 17:41:54 -05:00
2026-03-27 19:19:27 -04:00
2026-03-11 17:26:45 -04:00
2026-05-14 03:21:12 -04:00
2026-07-09 14:26:45 -04:00
2026-07-09 20:47:59 -04:00
2026-07-09 18:47:25 -04:00

JSPG - JSON Schema Validation for PostgreSQL

Description
No description provided
Readme 32 MiB
Languages
Rust 99.2%
Shell 0.8%