From 038d8cac3fe06ca2dcf0b4e85f5e536b73ce9313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Knut=20Olav=20L=C3=B8ite?= Date: Tue, 26 Sep 2023 19:05:44 +0200 Subject: [PATCH] docs: remove reference to returning clauses for Batch DML (#2644) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: remove reference to returning clauses for Batch DML Remove the reference to THEN RETURN / RETURNING clauses for Batch DML requests, as these clauses are ignored for batch DML and not returned to the client. * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot --- README.md | 6 +++--- .../com/google/cloud/spanner/TransactionContext.java | 9 ++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7628327dae..9a49a25f5b 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ implementation 'com.google.cloud:google-cloud-spanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.47.0' +implementation 'com.google.cloud:google-cloud-spanner:6.48.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.47.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.48.0" ``` @@ -431,7 +431,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/java-spanner/java11.html [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.47.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.48.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionContext.java b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionContext.java index 4a21d9c2cc..1e17817cce 100644 --- a/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionContext.java +++ b/google-cloud-spanner/src/main/java/com/google/cloud/spanner/TransactionContext.java @@ -162,11 +162,10 @@ default ResultSet analyzeUpdateStatement( } /** - * Executes a list of DML statements (which can include simple DML statements or DML statements - * with returning clause) in a single request. The statements will be executed in order and the - * semantics is the same as if each statement is executed by {@code executeUpdate} in a loop. This - * method returns an array of long integers, each representing the number of rows modified by each - * statement. + * Executes a list of DML statements in a single request. The statements will be executed in order + * and the semantics is the same as if each statement is executed by {@code executeUpdate} in a + * loop. This method returns an array of long integers, each representing the number of rows + * modified by each statement. * *

If an individual statement fails, execution stops and a {@code SpannerBatchUpdateException} * is returned, which includes the error and the number of rows affected by the statements that