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
SELECTfoo.id, foo.some_fieldAS someField, bar.foo_idAS fooId, bar.other_fieldAS otherField
FROM foo foo
INNER JOIN bar bar ONbar.foo_id=foo.idWHEREfoo.some_field='baz'ANDbar.other_field='boo'
Actual behavior
Instead of foo.some_field = 'baz' the first term in the where clause is bar.some_field = 'baz', i.e. the generated sql is
SELECTfoo.id, foo.some_fieldAS someField, bar.foo_idAS fooId, bar.other_fieldAS otherField
FROM foo foo
INNER JOIN bar bar ONbar.foo_id=foo.idWHEREbar.some_field='baz'ANDbar.other_field='boo'
Version: I've tried
4.0.0
-4.6.0
Module:
protoquill
Database: I've tried
postgres
andh2
Expected behavior
Given
I expect
to generate
Actual behavior
Instead of
foo.some_field = 'baz'
the first term in the where clause isbar.some_field = 'baz'
, i.e. the generated sql isSteps to reproduce the behavior
See https://scastie.scala-lang.org/zYJwK8KoSH2hxV0tmTHLLQ as an example.
Workaround
Rewrite as
@getquill/maintainers
The text was updated successfully, but these errors were encountered: