Skip to content

Commit 5979442

Browse files
committed
NH-3413 - add more explanation to the fix
1 parent d212c6b commit 5979442

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/NHibernate/Engine/Query/QueryPlanCache.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ public IQueryExpressionPlan GetHQLQueryPlan(IQueryExpression queryExpression, bo
101101
{
102102
//NH-3413
103103
//Here we have to use original expression.
104+
//In most cases NH do not translate expression in second time, but
105+
// for cases when we have list parameters in query, like @p1.Contains(...),
106+
// it does, and then it uses parameters from first try.
104107
//TODO: cache only required parts of QueryExpression
105108
planExpression._expression = expression._expression;
106109
planExpression._constantToParameterMap = expression._constantToParameterMap;

0 commit comments

Comments
 (0)