File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -615,6 +615,7 @@ public function parseSelect($dql)
615615
616616 $ terms = $ this ->_tokenizer ->sqlExplode ($ reference , ' ' );
617617 $ pos = strpos ($ terms [0 ], '( ' );
618+ $ isColumnSelect = $ pos === false ;
618619
619620 if (count ($ terms ) > 1 || $ pos !== false ) {
620621 $ expression = array_shift ($ terms );
@@ -648,7 +649,7 @@ public function parseSelect($dql)
648649
649650 $ this ->_queryComponents [$ componentAlias ]['agg ' ][$ index ] = $ alias ;
650651 $ this ->_queryComponents [$ componentAlias ]['has_selected_column ' ] ??= false ;
651- $ this ->_queryComponents [$ componentAlias ]['has_selected_column ' ] |= $ pos === false ;
652+ $ this ->_queryComponents [$ componentAlias ]['has_selected_column ' ] |= $ isColumnSelect ;
652653
653654 if (preg_match ('/^([^\(]+)\.( \'?)(.*?)( \'?)$/ ' , $ expression , $ field )) {
654655 $ this ->_queryComponents [$ componentAlias ]['agg_field ' ][$ index ] = $ field [3 ];
You can’t perform that action at this time.
0 commit comments