diff --git a/jOOQ/src/main/java/org/jooq/impl/R2DBC.java b/jOOQ/src/main/java/org/jooq/impl/R2DBC.java index b597c7b9d4..6b7ad14c94 100644 --- a/jOOQ/src/main/java/org/jooq/impl/R2DBC.java +++ b/jOOQ/src/main/java/org/jooq/impl/R2DBC.java @@ -482,9 +482,18 @@ final class R2DBC { Rendered rendered = rendered(batch.configuration, batch.query); Statement stmt = c.createStatement(rendered.sql); Param[] params = rendered.bindValues.toArray(EMPTY_PARAM); + boolean first = true; for (Object[] bindValues : batch.allBindValues) { + // Change of specification in 0.9.0.RELEASE: + // No trailing add() calls are allowed anymore + // https://github.com/r2dbc/r2dbc-spi/issues/229 + if (first) + first = false; + else + stmt = stmt.add(); + // [#1371] [#2139] Don't bind variables directly onto statement, bind them through the collected params // list to preserve type information // [#3547] The original query may have no Params specified - e.g. when it was constructed with @@ -493,8 +502,6 @@ final class R2DBC { (params.length > 0) ? fields(bindValues, params) : fields(bindValues)); - - stmt = stmt.add(); } stmt.execute().subscribe(new RowCountSubscriber(downstream)); diff --git a/pom.xml b/pom.xml index a2ec45afb0..5d8037f1bc 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,7 @@ 2.0.0.6 - 0.9.0.M2 + 0.9.0.RELEASE 3.0.0 @@ -140,11 +140,6 @@ - - io.r2dbc - r2dbc-spi - ${io.r2dbc.version} - io.projectreactor reactor-core @@ -155,20 +150,27 @@ reactor-test 3.4.7 + + + + io.r2dbc + r2dbc-spi + ${io.r2dbc.version} + io.r2dbc r2dbc-h2 - 0.9.0.M1 + [0.9.0.M1,${io.r2dbc.version}] org.mariadb r2dbc-mariadb - 1.1.0-beta + 1.1.1-rc io.r2dbc r2dbc-mssql - ${io.r2dbc.version} + [0.9.0.RC1,${io.r2dbc.version}] com.oracle.database.r2dbc @@ -178,7 +180,7 @@ org.postgresql r2dbc-postgresql - ${io.r2dbc.version} + [0.9.0.RC1,${io.r2dbc.version}]