prisma-engines
e96eae70 - fix: implement a workaround for JSON list equality (#5804)

Commit
164 days ago
fix: implement a workaround for JSON list equality (#5804) [TML-2177](https://linear.app/prisma-company/issue/TML-2177/fix-list-filtersjson-listsequality) Fixes the only remaining test that was broken due to the parameterisation changes. The issue boils down to two problems present in the JSON list equality test, one is that we get a `Json[]` versus `Json` type mismatch when parsing and second is that we would currently insert an invalid `::jsonb` cast in `visit_equals`. I've tried a number of different fixes, my main idea was to tag the `Json` array parameters as `List(Json)` instead, which seems the cleanest option, but that causes a huge fallout breaking lots of other tests and I couldn't find an easy way to fix them without implementing multiple other workarounds due to the `Json` type already receiving special treatment in multiple places, so I ended up patching `parse_parameterized_list` and `visit_equals` to handle this case specifically.
Author
Parents
Loading