Skip to content

Commit

Permalink
Fixed the "==" constraint to a.i == b.i in PrepareSpec."with outer jo…
Browse files Browse the repository at this point in the history
…in" (#2230)
  • Loading branch information
b-gyula authored Oct 19, 2023
1 parent 7942c71 commit 07dbbd7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ class PrepareSpec extends Spec {
"with outer join" in {
val q = quote {
for {
(a, b) <- qr1 join qr2 on ((a, b) => a.i == a.i)
(a, b) <- qr1 join qr2 on ((a, b) => a.i == b.i)
c <- qr1 rightJoin (c => c.i == a.i)
} yield (a, b, c.map(c => c.i))
}
testContext.run(q).string mustEqual
"SELECT a.s, a.i, a.l, a.o, a.b, b.s, b.i, b.l, b.o, c.i AS _3 FROM TestEntity a INNER JOIN TestEntity2 b ON a.i = a.i RIGHT JOIN TestEntity c ON c.i = a.i"
"SELECT a.s, a.i, a.l, a.o, a.b, b.s, b.i, b.l, b.o, c.i AS _3 FROM TestEntity a INNER JOIN TestEntity2 b ON a.i = b.i RIGHT JOIN TestEntity c ON c.i = a.i"
}
}
}

0 comments on commit 07dbbd7

Please sign in to comment.