All work
- ToFuture provides ArgumentException at MultiQueryImpl.CreateCombinedQueryParametersNH-3983Resolved issue: NH-3983
- Inconsistent Decimal/NHibernateUtil.Currency handling causing runtime error when using Oracle.ManagedDataAccessNH-3976Resolved issue: NH-3976
- MsSql2012Dialect does not create sequence datatype based on the defined datatype in the IdentifierGeneratorNH-3949
- Nhibernate loses previous item from AsSet collection when adding the first new oneNH-3942Resolved issue: NH-3942Alex Zaytsev
- Linq projection returns object with defaults instead of null when db reference is nullNH-3938
- Support lamdas in linq expressionNH-3926Resolved issue: NH-3926
- Select Expressions Cache EntitiesNH-3918Resolved issue: NH-3918
- SQLite Dialect does not specify any keywords except 'int'NH-3917Resolved issue: NH-3917
- Unique/ Primary key constraints not being re-created.NH-3916
- Implement bitwise not (~) in Linq ProviderNH-3915
- Change GitHub build hooks over to new build serverNH-3914Resolved issue: NH-3914Alex Zaytsev
- Component has bag of child components. Child property mapping ignoredNH-3913Resolved issue: NH-3913
- Reflection Optimizer tries to cast values to getter type in setterNH-3911Resolved issue: NH-3911
- All database dialects should pass their tests on the build serverNH-3907Resolved issue: NH-3907Alex Zaytsev
- Incorrect parsing of <sql-query>NH-3906
- Support async: Blocking IO leads to ThreadPool starvation and limits scalabilityNH-3905Resolved issue: NH-3905
- Passing a user type instance as a constant parameter in a linq expression fails.NH-3904Resolved issue: NH-3904
- HiLo table and column name not quotedNH-3903
- ORA-00904: "THIS_"."ID" when combining SetMaxResults and SetLockMode in single queryNH-3902
- Configuring a property with generated="insert" turns "Property.IsUpdatable" into"false" even using update="true" in the xml mapping file.NH-3898Resolved issue: NH-3898
- Use of Hashset Test framework's DebugConnectionProvider not thread-safe.NH-3897Resolved issue: NH-3897
- Keys with custom GetHashCode are not added correctly to key-many-to-many/one-to-many dictionaries when FetchMode is not SelectNH-3894
- HQL parse error of a query with 'left' or 'right' functionNH-3893Resolved issue: NH-3893
- Not all overrides of ISerializable.GetObjectData set SecurityCriticalNH-3891Resolved issue: NH-3891Oskar Berggren
- Update all support projects and tooling to .NET 4.0NH-3890Resolved issue: NH-3890Oskar Berggren
- Coalesce on entity in sub-select causes incorrect SQLNH-3889Resolved issue: NH-3889
- Unable to resolve property: _{Namespace} during MergeNH-3886
- ThreadSafeDictionary is not threadsafeNH-3885Resolved issue: NH-3885
- Invalid SQL when grouping by conditionNH-3883Resolved issue: NH-3883Alex Zaytsev
- Linq Fetch cannot traverse through componentsNH-3882Resolved issue: NH-3882
- Wrong NHibernate.NonUniqueObjectException with readonly propertyNH-3881
- SequenceHiLoGenerator Jumps 1 number each lo > maxLoNH-3879Resolved issue: NH-3879
- Link to Deepgrok on homepage no longer functionsNH-3878Resolved issue: NH-3878
- Supply built-in type for JsonObjectNH-3876Resolved issue: NH-3876
- Build with MSBuild Tools 2015 (14)NH-3875Resolved issue: NH-3875Alex Zaytsev
- Evicting an object with a collection with logging enabled throwsNH-3874Resolved issue: NH-3874
- Explicit joins on unrelated classesNH-3873Resolved issue: NH-3873
- Potentially serious memory leak with regards to AdoTransaction RollbackNH-3871Resolved issue: NH-3871Alex Zaytsev
- Potentially serious memory leak with regards to AdoTransaction RollbackNH-3870
- Add a way of adding comments into LINQ queriesNH-3869Resolved issue: NH-3869
- Queries with sub-query in ThenBy failNH-3868Resolved issue: NH-3868Alex Zaytsev
- Schema Update FailureNH-3867
- QueryOver with two inner joins and skip results in SqlExceptionNH-3866Resolved issue: NH-3866
- Swallowed ArgumentNullException with dynamic composite idNH-3865Resolved issue: NH-3865Frédéric Delaporte
- Cacheable Multicriteria/Future'd query with aliased join throw exceptionNH-3864Resolved issue: NH-3864
- Apply Boolean Operator Short-Circuiting In-MemoryNH-3863
- fetch subselect in unordered paginated queryNH-3862Resolved issue: NH-3862Alex Zaytsev
- View without key attributeNH-3861Resolved issue: NH-3861
- Missing EntityName in IManyToOneMapperNH-3860Resolved issue: NH-3860
- Exception when calling First on a GroupBy QueryNH-3859
50 of 77
ToFuture provides ArgumentException at MultiQueryImpl.CreateCombinedQueryParameters
Fixed
Description
Environment
None
Details
Details
Assignee
Unassigned
UnassignedReporter
Dmitriy Selischev
Dmitriy SelischevLabels
Components
Fix versions
Priority
Who's Looking?
Open Who's Looking?
Created April 12, 2017 at 3:59 PM
Updated May 10, 2018 at 1:31 PM
Resolved May 10, 2018 at 1:31 PM
Activity
Show:
Dmitriy Selischev April 12, 2017 at 4:26 PM
Dmitriy Selischev
April 12, 2017 at 4:26 PM
Issue can be fixed by adding underscore after original parameter name:
p1+_+10 => p1_10
p11+_+0 => p11_0
Dmitriy Selischev April 12, 2017 at 4:05 PM(edited)
Dmitriy Selischev
April 12, 2017 at 4:05 PM
(edited)
Example code here should be better to see
var eventsRequestsResults = new List<IEnumerable<ISectionEvent>>();
while (enumerator.MoveNext())
{
var eventRequest =
Session.Query<ISectionEvent>()
.Where(currentPredicate)
.OrderBy(eventee => eventee.DateStart)
.Fetch(eventee => eventee.RelatedSection)
.ThenFetch(relatedSection => relatedSection.ParentSection)
.ThenFetch(parentSection => parentSection.BaseGroup)
.Take(currentMaxItems)
.ToFuture();
eventsRequestsResults.Add(eventRequest);
}
eventsRequestsResults.First().ToList(); //This line throws ArgumentException.
We have next code:
var eventsRequestsResults = new List<IEnumerable<ISectionEvent>>(); while (enumerator.MoveNext()) { var eventRequest = Session.Query<ISectionEvent>() .Where(currentPredicate) .OrderBy(eventee => eventee.DateStart) .Fetch(eventee => eventee.RelatedSection) .ThenFetch(relatedSection => relatedSection.ParentSection) .ThenFetch(parentSection => parentSection.BaseGroup) .Take(currentMaxItems) .ToFuture(); eventsRequestsResults.Add(eventRequest); } eventsRequestsResults.First().ToList(); //This line throws ArgumentException.
-------------------
Exception throws at > NHibernate.dll!NHibernate.Impl.MultiQueryImpl.CreateCombinedQueryParameters() Line 632 C#
We have:
QueryParameters: p1,...,p10,p11
11 equal ToFuture queries
What actually happened: when CreateCombinedQueryParameters aggregates all parameters from all ToFuture queries into Dictionary then it apply a final parameter name as Concatenation(originalParamName, queryNumber)
So, for the first query(with zero-based number) final names:
p1+0 => p10, ... , p10+0 => p100, p11+0 => p110
For the 10th query final names:
p1+9 => p19, ... , p10+9 => p109, p11+9 => p119
And for the 11th query there is the first issue occurred:
p1+10 => p110, ... , p10+10 => p1010, p11+10 => p1110