Permalink
Browse files

Place each node of a union in parentheses

  • Loading branch information...
kuppuswamy committed Jun 19, 2017
1 parent 43a5036 commit c5b0e6ce8082741928c340cffa7675dba88591db
Showing with 2 additions and 2 deletions.
  1. +2 −2 slick/src/main/scala/slick/jdbc/JdbcStatementBuilderComponent.scala
@@ -424,9 +424,9 @@ trait JdbcStatementBuilderComponent { self: JdbcProfile =>
b"\}"
case Union(left, right, all) =>
b"\{"
buildFrom(left, None, true)
buildFrom(left, None, false)
if(all) b"\nunion all " else b"\nunion "
buildFrom(right, None, true)
buildFrom(right, None, false)
b"\}"
case SimpleLiteral(w) => b += w
case s: SimpleExpression => s.toSQL(this)

0 comments on commit c5b0e6c

Please sign in to comment.