1
0
mirror of synced 2025-01-31 12:32:59 +03:00

Revert "Add hidden field ordering for postgresql"

This reverts commit 3e8796f78188e193aac7386b38b7e17da3df5718.
This commit is contained in:
denkiryokuhatsuden 2013-04-03 17:14:31 +09:00
parent 3e8796f781
commit 786d904328

View File

@ -91,25 +91,7 @@ class LimitSubqueryOutputWalker extends SqlWalker
*/ */
public function walkSelectStatement(SelectStatement $AST) public function walkSelectStatement(SelectStatement $AST)
{ {
if ($this->platform instanceof PostgreSqlPlatform) { $innerSql = parent::walkSelectStatement($AST);
// Set every select expression as visible(hidden = false) to
// make $AST to have scalar mappings properly
$hiddens = array();
foreach ($AST->selectClause->selectExpressions as $idx => $expr) {
$hiddens[$idx] = $expr->hiddenAliasResultVariable;
$expr->hiddenAliasResultVariable = false;
}
$innerSql = parent::walkSelectStatement($AST);
// Restore hiddens
foreach ($AST->selectClause->selectExpressions as $idx => $expr) {
$expr->hiddenAliasResultVariable = $hiddens[$idx];
}
} else {
$innerSql = parent::walkSelectStatement($AST);
}
// Find out the SQL alias of the identifier column of the root entity. // Find out the SQL alias of the identifier column of the root entity.
// It may be possible to make this work with multiple root entities but that // It may be possible to make this work with multiple root entities but that