Subqueries should never add items to ResultSetMapping. Fixing possible broken inclusion.
This commit is contained in:
parent
a86038b484
commit
9795cb1f0d
@ -1332,9 +1332,6 @@ class SqlWalker implements TreeWalker
|
|||||||
$sql .= $this->walkCaseExpression($expr) . ' AS ' . $columnAlias;
|
$sql .= $this->walkCaseExpression($expr) . ' AS ' . $columnAlias;
|
||||||
|
|
||||||
$this->_scalarResultAliasMap[$alias] = $columnAlias;
|
$this->_scalarResultAliasMap[$alias] = $columnAlias;
|
||||||
|
|
||||||
$columnAlias = $this->_platform->getSQLResultCasing($columnAlias);
|
|
||||||
$this->_rsm->addScalarResult($columnAlias, $alias);
|
|
||||||
} else {
|
} else {
|
||||||
// IdentificationVariable
|
// IdentificationVariable
|
||||||
$class = $this->_queryComponents[$expr]['metadata'];
|
$class = $this->_queryComponents[$expr]['metadata'];
|
||||||
|
Loading…
Reference in New Issue
Block a user