Skip to content

Commit f14f5e3

Browse files
committed
DB2 precision for decimal seems to be 0(?)
1 parent ad10f6f commit f14f5e3

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/NHibernate.Test/Async/CacheTest/QueryCacheFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,14 @@ public async Task QueryCacheWithScalarReturnAsync()
8787
using (var s = OpenSession())
8888
{
8989
var result = await (s
90-
.CreateSQLQuery("select cast(200012 as decimal) from Simple where id_ = 1")
90+
.CreateSQLQuery("select cast(200012 as DECIMAL(18,5)) from Simple where id_ = 1")
9191
.SetCacheable(true)
9292
.UniqueResultAsync<decimal>());
9393

9494
Assert.That(result, Is.EqualTo(200012), "Unexpected non-cached result");
9595

9696
result = await (s
97-
.CreateSQLQuery("select cast(200012 as decimal) from Simple where id_ = 1")
97+
.CreateSQLQuery("select cast(200012 as DECIMAL(18,5)) from Simple where id_ = 1")
9898
.SetCacheable(true)
9999
.UniqueResultAsync<decimal>());
100100

src/NHibernate.Test/Async/ProjectionFixtures/Fixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public async Task AggregatingHirearchyWithCountAsync()
148148
[Test]
149149
public async Task LimitingResultSetOnQueryThatIsOrderedByProjectionAsync()
150150
{
151-
if (!TestDialect.SupportsSubSelectsInOrderBy)
151+
if (!TestDialect.SupportsSubSelectsInOrderBy)
152152
Assert.Ignore("Dialect does not support order by sub-select");
153153

154154
using(var s = OpenSession())
@@ -172,7 +172,7 @@ public async Task LimitingResultSetOnQueryThatIsOrderedByProjectionAsync()
172172
[Test]
173173
public async Task QueryingWithParemetersAndParaemtersInOrderByAsync()
174174
{
175-
if (!TestDialect.SupportsSubSelectsInOrderBy)
175+
if (!TestDialect.SupportsSubSelectsInOrderBy)
176176
Assert.Ignore("Dialect does not support order by sub-select");
177177

178178
using (var s = OpenSession())

src/NHibernate.Test/CacheTest/QueryCacheFixture.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ public void QueryCacheWithScalarReturn()
7676
using (var s = OpenSession())
7777
{
7878
var result = s
79-
.CreateSQLQuery("select cast(200012 as decimal) from Simple where id_ = 1")
79+
.CreateSQLQuery("select cast(200012 as DECIMAL(18,5)) from Simple where id_ = 1")
8080
.SetCacheable(true)
8181
.UniqueResult<decimal>();
8282

8383
Assert.That(result, Is.EqualTo(200012), "Unexpected non-cached result");
8484

8585
result = s
86-
.CreateSQLQuery("select cast(200012 as decimal) from Simple where id_ = 1")
86+
.CreateSQLQuery("select cast(200012 as DECIMAL(18,5)) from Simple where id_ = 1")
8787
.SetCacheable(true)
8888
.UniqueResult<decimal>();
8989

0 commit comments

Comments
 (0)