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 c61b444 commit 08d31f4Copy full SHA for 08d31f4
src/Parser.php
@@ -728,9 +728,9 @@ protected function getQualifiedColumnName($column, $table = null)
728
{
729
//Check whether there is a matching column expression that contains an
730
//alias and should therefore not be turned into a qualified column name.
731
- $isAlias = !empty(array_filter($this->query->columns ?: [], function($column) {
+ $isAlias = count(array_filter($this->query->columns ?: [], function($column) {
732
return stripos($column, ' as ') !== false;
733
- }));
+ })) > 0;
734
735
if (strpos($column, '.') === false && !$isAlias) {
736
return $table ?: $this->query->from.'.'.$column;
0 commit comments