Skip to content

Commit 1c5504f

Browse files
committed
fixup! DB2 precision for decimal seems to be 0(?)
Sorry, Firebird
1 parent 4a6a35d commit 1c5504f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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(19,5)) 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(19,5)) 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

0 commit comments

Comments
 (0)