Skip to content

Commit f60eaa4

Browse files
committed
DB2 reports int parameters with precision
1 parent f14f5e3 commit f60eaa4

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

src/NHibernate.Test/Async/Futures/FutureQueryFixture.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,12 @@ public async Task CanExecuteMultipleQueryWithSameParameterNameAsync()
159159
string paramPrefix = ((DriverBase) Sfi.ConnectionProvider.Driver).NamedPrefix;
160160
Assert.That(
161161
wholeLog,
162-
Does.Contain(paramPrefix + "p0 = 1 [Type: Int32 (0:0:0)], " + paramPrefix + "p1 = 2 [Type: Int32 (0:0:0)]"));
162+
Does.Contain(
163+
paramPrefix + "p0 = 1 [Type: Int32 (0:0:0)], " +
164+
paramPrefix + "p1 = 2 [Type: Int32 (0:0:0)]")
165+
.Or.Contain(
166+
paramPrefix + "p0 = 1 [Type: Int32 (4:0:0)], " +
167+
paramPrefix + "p1 = 2 [Type: Int32 (4:0:0)]"));
163168
}
164169
}
165170
}

src/NHibernate.Test/Async/Futures/LinqFutureFixture.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,12 @@ public async Task CanExecuteMultipleQueriesOnSameExpressionAsync()
381381
string paramPrefix = ((DriverBase) Sfi.ConnectionProvider.Driver).NamedPrefix;
382382
Assert.That(
383383
wholeLog,
384-
Does.Contain(paramPrefix + "p0 = 1 [Type: Int32 (0:0:0)], " + paramPrefix + "p1 = 2 [Type: Int32 (0:0:0)]"));
384+
Does.Contain(
385+
paramPrefix + "p0 = 1 [Type: Int32 (0:0:0)], " +
386+
paramPrefix + "p1 = 2 [Type: Int32 (0:0:0)]")
387+
.Or.Contain(
388+
paramPrefix + "p0 = 1 [Type: Int32 (4:0:0)], " +
389+
paramPrefix + "p1 = 2 [Type: Int32 (4:0:0)]"));
385390
}
386391
}
387392
}

src/NHibernate.Test/Futures/FutureQueryFixture.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,12 @@ public void CanExecuteMultipleQueryWithSameParameterName()
148148
string paramPrefix = ((DriverBase) Sfi.ConnectionProvider.Driver).NamedPrefix;
149149
Assert.That(
150150
wholeLog,
151-
Does.Contain(paramPrefix + "p0 = 1 [Type: Int32 (0:0:0)], " + paramPrefix + "p1 = 2 [Type: Int32 (0:0:0)]"));
151+
Does.Contain(
152+
paramPrefix + "p0 = 1 [Type: Int32 (0:0:0)], " +
153+
paramPrefix + "p1 = 2 [Type: Int32 (0:0:0)]")
154+
.Or.Contain(
155+
paramPrefix + "p0 = 1 [Type: Int32 (4:0:0)], " +
156+
paramPrefix + "p1 = 2 [Type: Int32 (4:0:0)]"));
152157
}
153158
}
154159
}

src/NHibernate.Test/Futures/LinqFutureFixture.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,12 @@ public void CanExecuteMultipleQueriesOnSameExpression()
370370
string paramPrefix = ((DriverBase) Sfi.ConnectionProvider.Driver).NamedPrefix;
371371
Assert.That(
372372
wholeLog,
373-
Does.Contain(paramPrefix + "p0 = 1 [Type: Int32 (0:0:0)], " + paramPrefix + "p1 = 2 [Type: Int32 (0:0:0)]"));
373+
Does.Contain(
374+
paramPrefix + "p0 = 1 [Type: Int32 (0:0:0)], " +
375+
paramPrefix + "p1 = 2 [Type: Int32 (0:0:0)]")
376+
.Or.Contain(
377+
paramPrefix + "p0 = 1 [Type: Int32 (4:0:0)], " +
378+
paramPrefix + "p1 = 2 [Type: Int32 (4:0:0)]"));
374379
}
375380
}
376381
}

0 commit comments

Comments
 (0)