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 2a2e6c5 commit 03eb61cCopy full SHA for 03eb61c
1 file changed
src/Utils/Query.php
@@ -295,7 +295,14 @@ public static function getFlags($statement, $all = false)
295
$flags['is_export'] = true;
296
}
297
298
- foreach ($statement->expr as $expr) {
+ $expressions = $statement->expr;
299
+ if (!empty($statement->join)) {
300
+ foreach ($statement->join as $join) {
301
+ $expressions[] = $join->expr;
302
+ }
303
304
+
305
+ foreach ($expressions as $expr) {
306
if (!empty($expr->function)) {
307
if ($expr->function === 'COUNT') {
308
$flags['is_count'] = true;
0 commit comments