Skip to content

Commit 06b9727

Browse files
committed
HqlSqlWalker.cs: Remove obsolete handling of collection.elements and collection.indices, syntax which haven't been supported since 2.1.0 (commit 63c5874).
1 parent 6ea7f43 commit 06b9727

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

src/NHibernate/Hql/Ast/ANTLR/HqlSqlWalker.cs

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -793,32 +793,10 @@ void ProcessNumericLiteral(IASTNode literal)
793793
protected IASTNode LookupProperty(IASTNode dot, bool root, bool inSelect)
794794
{
795795
DotNode dotNode = (DotNode) dot;
796-
FromReferenceNode lhs = dotNode.GetLhs();
797-
IASTNode rhs = lhs.NextSibling;
798-
switch (rhs.Type)
799-
{
800-
case ELEMENTS:
801-
case INDICES:
802-
if (log.IsDebugEnabled)
803-
{
804-
log.Debug("lookupProperty() " + dotNode.Path + " => " + rhs.Text + "(" + lhs.Path + ")");
805-
}
806-
807-
CollectionFunction f = (CollectionFunction) rhs;
808-
// Re-arrange the tree so that the collection function is the root and the lhs is the path.
809796

810-
f.SetFirstChild(lhs);
811-
lhs.NextSibling = null;
812-
dotNode.SetFirstChild(f);
813-
814-
Resolve(lhs); // Don't forget to resolve the argument!
815-
f.Resolve(inSelect); // Resolve the collection function now.
816-
return f;
817-
default:
818-
// Resolve everything up to this dot, but don't resolve the placeholders yet.
819-
dotNode.ResolveFirstChild();
820-
return dotNode;
821-
}
797+
// Resolve everything up to this dot, but don't resolve the placeholders yet.
798+
dotNode.ResolveFirstChild();
799+
return dotNode;
822800
}
823801

824802
static void ProcessIndex(IASTNode indexOp)

0 commit comments

Comments
 (0)