|
|
@@ -125,7 +125,9 @@ class QueryCompiler
|
|
|
protected function _sqlCompiler(&$sql, $query, $generator)
|
|
|
{
|
|
|
return function ($parts, $name) use (&$sql, $query, $generator) {
|
|
|
- if (!count($parts)) {
|
|
|
+ if (!isset($parts) ||
|
|
|
+ ((is_array($parts) || $parts instanceof \Countable) && !count($parts))
|
|
|
+ ) {
|
|
|
return;
|
|
|
}
|
|
|
if ($parts instanceof ExpressionInterface) {
|