1
0
mirror of synced 2025-03-04 20:03:21 +03:00

DDC-3434 - adding note on why restoring 'HIDDEN' selected fields is relevant

This commit is contained in:
Marco Pivetta 2014-12-05 18:02:12 +01:00
parent 24c4ec91e5
commit 37516d7548

View File

@ -94,7 +94,8 @@ class LimitSubqueryOutputWalker extends SqlWalker
public function walkSelectStatement(SelectStatement $AST)
{
// Set every select expression as visible(hidden = false) to
// make $AST to have scalar mappings properly
// make $AST have scalar mappings properly - this is relevant for referencing selected
// fields from outside the subquery, for example in the ORDER BY segment
$hiddens = array();
foreach ($AST->selectClause->selectExpressions as $idx => $expr) {