Skip to content
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 1 changed file with 2 additions and 2 deletions.
@@ -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.