analyzeUpdate is executed as executeUpdate during retry in the Connection API #2009
Labels
api: spanner
Issues related to the googleapis/java-spanner API.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
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 asexecuteUpdate(Statement)
instead ofanalyzeUpdate(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.The text was updated successfully, but these errors were encountered: