1
0
mirror of synced 2025-02-20 22:23:14 +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 6169175a89
commit ac67a10d4c

View File

@ -93,7 +93,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) {