Files
jspg/fixtures
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-07-07 12:42:05 -04:00
2026-04-17 18:25:14 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-06-15 16:41:59 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-09 14:26:45 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-07-07 12:42:05 -04:00
2026-06-23 19:48:38 -04:00