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.
2 parents bee2c30 + 949ffec commit de5f662Copy full SHA for de5f662
src/Query/Grammar.php
@@ -176,6 +176,18 @@ protected function compileUnions(Builder $query)
176
return ltrim($sql);
177
}
178
179
+ /**
180
+ * Compile a single union statement.
181
+ *
182
+ * @return string
183
+ */
184
+ protected function compileUnion(array $union)
185
+ {
186
+ $conjunction = $union['all'] ? ' union all ' : ' union ';
187
+
188
+ return $conjunction.'('.$union['query']->toSql().')';
189
+ }
190
191
/**
192
* Compile a select query into SQL.
193
*
0 commit comments