@@ -228,7 +228,7 @@ static int insertJdbc(java.sql.Connection connection) throws SQLException {
228228 * interactions as {@link #insertJdbc(java.sql.Connection)}.
229229 * @return {@code Publisher} emitting the count of inserted rows.
230230 */
231- static Publisher <Integer > insertR2dbc (io .r2dbc .spi .Connection connection ) {
231+ static Publisher <Long > insertR2dbc (io .r2dbc .spi .Connection connection ) {
232232
233233 return Flux .from (connection .createStatement (
234234 "INSERT INTO JdbcToR2dbcTable(id, value) VALUES (?, ?)" )
@@ -260,7 +260,7 @@ static int updateJdbc(java.sql.Connection connection) throws SQLException {
260260 * interactions as {@link #updateJdbc(java.sql.Connection)}.
261261 * @return {@code Publisher} emitting the count of updated rows.
262262 */
263- static Publisher <Integer > updateR2dbc (io .r2dbc .spi .Connection connection ) {
263+ static Publisher <Long > updateR2dbc (io .r2dbc .spi .Connection connection ) {
264264
265265 return Flux .from (connection .createStatement (
266266 "UPDATE JdbcToR2dbcTable SET value = ? WHERE id = ?" )
@@ -298,7 +298,7 @@ static int tryUpdateJdbc(java.sql.Connection connection) throws SQLException {
298298 * @param connection Database connection
299299 * @return {@code Publisher} emitting the count of updated rows.
300300 */
301- static Publisher <Integer > tryUpdateR2dbc (io .r2dbc .spi .Connection connection ) {
301+ static Publisher <Long > tryUpdateR2dbc (io .r2dbc .spi .Connection connection ) {
302302
303303 // Try to update the row
304304 return Flux .from (updateR2dbc (connection ))
@@ -347,7 +347,7 @@ static int tryInsertJdbc(java.sql.Connection connection) throws SQLException {
347347 * @param connection Database connection
348348 * @return {@code Publisher} emitting the count of updated rows.
349349 */
350- static Publisher <Integer > tryInsertR2dbc (io .r2dbc .spi .Connection connection ) {
350+ static Publisher <Long > tryInsertR2dbc (io .r2dbc .spi .Connection connection ) {
351351
352352 // Try to insert the row
353353 return Flux .from (insertR2dbc (connection ))
@@ -421,7 +421,7 @@ static int loopJdbc(java.sql.Connection connection) throws SQLException {
421421 * @param connection Database connection
422422 * @return {@code Publisher} emitting the count of updated rows.
423423 */
424- static Publisher <Integer > loopR2dbc (io .r2dbc .spi .Connection connection ) {
424+ static Publisher <Long > loopR2dbc (io .r2dbc .spi .Connection connection ) {
425425
426426 // Try to update the row, or insert it if it does not exist
427427 return Flux .from (tryUpdateR2dbc (connection ))
@@ -512,7 +512,7 @@ static void createTable() {
512512 // exists. If so, then ignore it.
513513 error instanceof R2dbcException
514514 && ((R2dbcException )error ).getErrorCode () == 955 ,
515- 0 ),
515+ 0L ),
516516 io .r2dbc .spi .Connection ::close )
517517 .blockLast (Duration .ofSeconds (15 ));
518518 }
@@ -531,7 +531,7 @@ static void dropTable() {
531531 // a finally block so we don't want it to throw the error over another
532532 // error from the try block.
533533 .doOnError (System .out ::println )
534- .onErrorReturn (1 )
534+ .onErrorReturn (1L )
535535 .blockLast (Duration .ofSeconds (15 ));
536536 }
537537
0 commit comments