#11 - Adapt Statement.bind(…) calls to newly introduced positional (integer-arg) binding.

We now use bind(int, …) methods to bind parameters by index.
This commit is contained in:
Mark Paluch
2018-11-12 15:04:29 +01:00
parent c2ebfb8cd3
commit 93ddaff3c2

View File

@@ -245,9 +245,9 @@ class DefaultDatabaseClient implements DatabaseClient, ConnectionAccessor {
byIndex.forEach((i, o) -> {
if (o.getValue() != null) {
statement.bind(i, o.getValue());
statement.bind(i.intValue(), o.getValue());
} else {
statement.bindNull(i, o.getType());
statement.bindNull(i.intValue(), o.getType());
}
});