Skip to content

Commit

Permalink
Place each node of a union in parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
kuppuswamy committed Jun 19, 2017
1 parent 43a5036 commit c5b0e6c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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)
Expand Down

0 comments on commit c5b0e6c

Please sign in to comment.