|
@@ -77,7 +77,7 @@ |
|
|
block discarded – undo |
|
77
|
77
|
$myQuery = clone $this->query; |
|
78
|
78
|
// if its a normal query ( no union, having and distinct word ) |
|
79
|
79
|
// replace the select with static text to improve performance |
|
80
|
|
- if (! Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct'])) { |
|
|
80
|
+ if (!Str::contains(Str::lower($myQuery->toSql()), ['union', 'having', 'distinct'])) { |
|
81
|
81
|
$row_count = $this->connection->getQueryGrammar()->wrap('row_count'); |
|
82
|
82
|
$myQuery->select($this->connection->raw("'1' as {$row_count}")); |
|
83
|
83
|
} |
Please login to merge, or discard this patch.