Skip to content

Commit c2b3968

Browse files
committed
Merge 5.1.2 into master
2 parents 1ebebd5 + d613336 commit c2b3968

File tree

67 files changed

+2165
-1247
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2165
-1247
lines changed

Tools/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<package id="NUnit.Extension.NUnitV2ResultWriter" version="3.6.0" targetFramework="net461" />
88
<package id="NUnit.Extension.TeamCityEventListener" version="1.0.2" targetFramework="net461" />
99
<package id="NUnit.Extension.VSProjectLoader" version="3.6.0" targetFramework="net461" />
10-
<package id="CSharpAsyncGenerator.CommandLine" version="0.8.2.1" targetFramework="net461" />
10+
<package id="CSharpAsyncGenerator.CommandLine" version="0.8.2.4" targetFramework="net461" />
1111
<package id="vswhere" version="2.1.4" targetFramework="net461" />
1212
<package id="gitreleasemanager" version="0.7.0" targetFramework="net461" />
1313
</packages>

appveyor.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version: 5.1.1.{build}
1+
version: 5.1.2.{build}
22
image: Visual Studio 2017
33
environment:
44
matrix:
@@ -63,4 +63,4 @@ on_finish:
6363
$wc = New-Object 'System.Net.WebClient'
6464
Get-Item '*-TestResult.xml' | ForEach-Object {
6565
$wc.UploadFile("https://ci.appveyor.com/api/testresults/nunit3/$($env:APPVEYOR_JOB_ID)", $_)
66-
}
66+
}

build-common/NHibernate.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<VersionMajor Condition="'$(VersionMajor)' == ''">5</VersionMajor>
55
<VersionMinor Condition="'$(VersionMinor)' == ''">1</VersionMinor>
6-
<VersionPatch Condition="'$(VersionPatch)' == ''">1</VersionPatch>
6+
<VersionPatch Condition="'$(VersionPatch)' == ''">2</VersionPatch>
77
<VersionSuffix Condition="'$(VersionSuffix)' == ''"></VersionSuffix>
88

99
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>

build-common/common.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414
<!-- This is used only for build folder -->
1515
<!-- TODO: Either remove or refactor to use NHibernate.props -->
16-
<property name="project.version" value="5.1.1" overwrite="false" />
17-
<property name="project.version.numeric" value="5.1.1" overwrite="false" />
16+
<property name="project.version" value="5.1.2" overwrite="false" />
17+
<property name="project.version.numeric" value="5.1.2" overwrite="false" />
1818

1919
<!-- properties used to connect to database for testing -->
2020
<include buildfile="nhibernate-properties.xml" />

releasenotes.txt

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,29 @@
1-
Build 5.1.1
1+
Build 5.1.2
2+
=============================
3+
4+
Release notes - NHibernate - Version 5.1.2
5+
6+
** Bug
7+
8+
* #1680 RowCount not working with JoinEntityAlias
9+
* #1672 Generated async methods do not correctly propagate OperationCanceledException
10+
* #1667 Collection initializing with zero rows after update to NH5
11+
* #1660 Wrong CopyTo implementation
12+
* #1650 Cannot use cache.use_sliding_expiration in hibernate.cfg.xml
13+
* #1585 Hashset unsupported by SetParameterList
14+
* #1355 NH-3928 - Random invalid SQL generated when using bitwise operators
15+
16+
** Task
17+
18+
* #1668 Merge 5.0.5 into 5.1.x
19+
* #1664 Release 5.1.2
20+
* #1659 Merge 5.0.4 into 5.1.x
21+
22+
As part of releasing 5.1.2, a missing 5.0.0 possible breaking change has been added about future queries with data
23+
providers not actually supporting them. See 5.0.0 possible breaking changes.
24+
25+
26+
Build 5.1.1
227
=============================
328

429
Release notes - NHibernate - Version 5.1.1
@@ -192,6 +217,34 @@ Release notes - NHibernate - Version 5.1.0
192217
As part of releasing 5.1.0, a missing 5.0.0 possible breaking change has been added about inequality semantic in LINQ
193218
queries. See 5.0.0 possible breaking changes.
194219

220+
Build 5.0.6
221+
=============================
222+
223+
Release notes - NHibernate - Version 5.0.6
224+
225+
** Bug
226+
* #1672 Generated async methods do not correctly propagate OperationCanceledException
227+
* #1355 NH-3928 - Random invalid SQL generated when using bitwise operators
228+
229+
** Task
230+
* #1686 Release 5.0.6
231+
232+
Build 5.0.5
233+
=============================
234+
235+
Release notes - NHibernate - Version 5.0.5
236+
237+
** Bug
238+
* #1665 Have IFutureEnumerable.GetEnumerable executing immediatly the query
239+
240+
Build 5.0.4
241+
=============================
242+
243+
Release notes - NHibernate - Version 5.0.4
244+
245+
** Bug
246+
* #1658 Add missing cache setting
247+
195248
Build 5.0.3
196249
=============================
197250

@@ -303,6 +356,10 @@ Build 5.0.0
303356
the dialect. They resolve to 4000 length string and (28, 10) precision/scale decimals by default, and are
304357
trimmed down according to dialect. Those defaults can be overridden with query.default_cast_length,
305358
query.default_cast_precision and query.default_cast_scale settings.
359+
* Future queries with data provider not actually supporting them (not supporting mutliple queries in a single
360+
SQL command) are no more immediately executed at the .Future call. They are executed only when directly
361+
enumerated or when their IFutureEnumerable.GetEnumerable method is called. (This aligns them with the behavior
362+
of FutureValue.)
306363
* Dialects are now configurable. If you instantiate a dialect directly, make sure you call its Configure
307364
method, with as argument the properties of a NHibernate Configuration object. You may use instead
308365
Dialect.GetDialect methods, which configure the dialect before returning it.
@@ -531,6 +588,14 @@ Release notes - NHibernate - Version 5.0.0
531588
* [NH-4011] - Fix transaction scopes handling
532589

533590

591+
Build 4.1.2.GA
592+
=============================
593+
594+
Release notes - NHibernate - Version 4.1.2.GA
595+
596+
** Bug
597+
* #1355 NH-3928 - Random invalid SQL generated when using bitwise operators
598+
534599
Build 4.1.1.GA
535600
=============================
536601

src/NHibernate.Test/Async/Cascade/Circle/MultiPathCircleCascadeTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ public async Task MergeEntityWithNonNullableEntityNullAsync()
155155
await (session.MergeAsync(route, cancellationToken));
156156
Assert.Fail("should have thrown an exception");
157157
}
158+
catch (OperationCanceledException) { throw; }
158159
catch (Exception ex)
159160
{
160161
Assert.That(ex, Is.TypeOf(typeof(PropertyValueException)));

src/NHibernate.Test/Async/Criteria/EntityJoinCriteriaTest.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,25 @@ public async Task CanJoinNotAssociatedEntityAsync()
4747
Assert.That(sqlLog.Appender.GetEvents().Length, Is.EqualTo(1), "Only one SQL select is expected");
4848
}
4949
}
50-
50+
51+
//GH1680
52+
[Test]
53+
public void CanRowCountWithEntityJoinAsync()
54+
{
55+
using (var session = OpenSession())
56+
{
57+
EntityComplex entityComplex = null;
58+
EntityWithNoAssociation root = null;
59+
var query = session.QueryOver(() => root)
60+
.JoinEntityAlias(() => entityComplex, Restrictions.Where(() => root.Complex1Id == entityComplex.Id));
61+
62+
var rowCountQuery = query.ToRowCountQuery();
63+
int rowCount = 0;
64+
Assert.DoesNotThrowAsync(async () => rowCount = await (rowCountQuery.SingleOrDefaultAsync<int>()), "row count query should not throw exception");
65+
Assert.That(rowCount, Is.GreaterThan(0), "row count should be > 0");
66+
}
67+
}
68+
5169
//check JoinEntityAlias - JoinAlias analog for entity join
5270
[Test]
5371
public async Task CanJoinNotAssociatedEntity_ExpressionAsync()

src/NHibernate.Test/Async/DebugConnectionProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public override async Task<DbConnection> GetConnectionAsync(CancellationToken ca
3030
connections.TryAdd(connection, 0);
3131
return connection;
3232
}
33+
catch (OperationCanceledException) { throw; }
3334
catch (Exception e)
3435
{
3536
throw new HibernateException("Could not open connection to: " + ConnectionString, e);

0 commit comments

Comments
 (0)