#212 - Polishing.

Consistently apply summing of updated rows. Tweak copyright years in license header to reflect file inception year.

Original pull request: #213.
This commit is contained in:
Mark Paluch
2019-10-23 14:00:01 +02:00
parent 2fac62a38c
commit 94c8f751a7
4 changed files with 4 additions and 4 deletions

View File

@@ -391,7 +391,7 @@ class DefaultDatabaseClient implements DatabaseClient, ConnectionAccessor {
return new DefaultSqlResult<>(DefaultDatabaseClient.this, //
sql, //
resultFunction, //
it -> resultFunction.apply(it).flatMap(Result::getRowsUpdated).next(), //
it -> sumRowsUpdated(resultFunction, it), //
mappingFunction);
}

View File

@@ -56,7 +56,7 @@ class DefaultSqlResult<T> implements SqlResult<T> {
@Override
public Mono<Integer> rowsUpdated() {
return Mono.empty();
return Mono.just(0);
}
};

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018-2019 the original author or authors.
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2018-2019 the original author or authors.
* Copyright 2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.