Skip to content

analyzeUpdate is executed as executeUpdate during retry in the Connection API #2009

Closed
@olavloite

Description

@olavloite

If analyzeUpdate(Statement) is executed in a read/write transaction in the Connection API, and the read/write transaction is aborted, the retry will retry the statement as executeUpdate(Statement) instead of analyzeUpdate(Statement). This will fail, either because the update count that is returned is different, or because the statement contained parameters and these were not bound for the analyze.

Metadata

Metadata

Assignees

Labels

api: spannerIssues related to the googleapis/java-spanner API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions