We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bee2c30 commit 67614ebCopy full SHA for 67614eb
src/Query/Grammar.php
@@ -176,6 +176,19 @@ protected function compileUnions(Builder $query)
176
return ltrim($sql);
177
}
178
179
+ /**
180
+ * Compile a single union statement.
181
+ *
182
+ * @param array $union
183
+ * @return string
184
+ */
185
+ protected function compileUnion(array $union)
186
+ {
187
+ $conjunction = $union['all'] ? ' union all ' : ' union ';
188
+
189
+ return $conjunction.'('.$union['query']->toSql().')';
190
+ }
191
192
/**
193
* Compile a select query into SQL.
194
*
0 commit comments