Skip to content

Commit

Permalink
fix: update executeCloudBatchDmlUpdates. (#2326)
Browse files Browse the repository at this point in the history
* fix: update executeCloudBatchDmlUpdates.

Fix a typo in executeCloudBatchDmlUpdates.

* 🦉 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 <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gyang-google and gcf-owl-bot[bot] committed Mar 9, 2023
1 parent 0f749dc commit 27ef53c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ If you are using Maven without BOM, add this to your dependencies:
If you are using Gradle 5.x or later, add this to your dependencies:

```Groovy
implementation platform('com.google.cloud:libraries-bom:26.9.0')
implementation platform('com.google.cloud:libraries-bom:26.10.0')
implementation 'com.google.cloud:google-cloud-spanner'
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2451,10 +2451,10 @@ private Status executeCloudBatchDmlUpdates(
QueryAction update = action.getUpdates(i);
Statement.Builder stmt = Statement.newBuilder(update.getSql());
for (int j = 0; j < update.getParamsCount(); ++j) {
stmt.bind(update.getParams(i).getName())
stmt.bind(update.getParams(j).getName())
.to(
valueProtoToCloudValue(
update.getParams(i).getType(), update.getParams(i).getValue()));
update.getParams(j).getType(), update.getParams(j).getValue()));
}
queries.add(stmt.build());
}
Expand Down

0 comments on commit 27ef53c

Please sign in to comment.