Skip to content

Commit 27ef53c

Browse files
fix: update executeCloudBatchDmlUpdates. (#2326)
* 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>
1 parent 0f749dc commit 27ef53c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ If you are using Maven without BOM, add this to your dependencies:
4949
If you are using Gradle 5.x or later, add this to your dependencies:
5050

5151
```Groovy
52-
implementation platform('com.google.cloud:libraries-bom:26.9.0')
52+
implementation platform('com.google.cloud:libraries-bom:26.10.0')
5353
5454
implementation 'com.google.cloud:google-cloud-spanner'
5555
```

google-cloud-spanner-executor/src/main/java/com/google/cloud/executor/spanner/CloudClientExecutor.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -2451,10 +2451,10 @@ private Status executeCloudBatchDmlUpdates(
24512451
QueryAction update = action.getUpdates(i);
24522452
Statement.Builder stmt = Statement.newBuilder(update.getSql());
24532453
for (int j = 0; j < update.getParamsCount(); ++j) {
2454-
stmt.bind(update.getParams(i).getName())
2454+
stmt.bind(update.getParams(j).getName())
24552455
.to(
24562456
valueProtoToCloudValue(
2457-
update.getParams(i).getType(), update.getParams(i).getValue()));
2457+
update.getParams(j).getType(), update.getParams(j).getValue()));
24582458
}
24592459
queries.add(stmt.build());
24602460
}

0 commit comments

Comments
 (0)