GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add option to indicate that a statement is the last in a transaction by olavloite · Pull Request #3644 · googleapis/java-spanner

This repository was archived by the owner on Aug 30, 2026. It is now read-only.

Conversation

@olavloite

@olavloite olavloite commented Feb 13, 2025

Copy link
Copy Markdown
Contributor

Adds an option to indicate that a SQL statement is the last in a read/write transaction. This allows Spanner to skip some verifications when executing the statement. The only allowed action after sending a statement with the option last_statement is a Commit or a Rollback.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
sgorse12 added 3 commits February 3, 2025 21:10
@sgorse12
feat: Add LastStatement DML option
3eda847
@sgorse12
Merging
52c011a
@sgorse12
Removing debugging changes
8673806
@olavloite
olavloite requested review from a team February 13, 2025 16:10
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: spanner Issues related to the googleapis/java-spanner API. labels Feb 13, 2025
@olavloite
olavloite merged commit f953f76 into googleapis:last-statement Feb 13, 2025
olavloite added a commit that referenced this pull request Feb 17, 2025
@olavloite @sgorse12 @cloud-java-bot
feat: add option to indicate that a statement is the last in a transa…
b04ea80
…ction (#3647)

* feat: add option to indicate that a statement is the last in a transaction (#3644)

* feat: Add LastStatement DML option

* Removing debugging changes

---------

Co-authored-by: Shirdon Gorse <[email protected]>

* feat: set last_statement for autocommit statements

Automatically sets the last_statement option to true for DML statements that
are executed in autocommit=true mode.

* fix: add hashCode implementation

Add a hashCode implementation that ensures that it is in sync with
the equals method.

* chore: generate libraries at Fri Feb 14 08:41:45 UTC 2025

* fix: extract error details from SpannerException

---------

Co-authored-by: Shirdon Gorse <[email protected]>
Co-authored-by: cloud-java-bot <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: spanner Issues related to the googleapis/java-spanner API. size: m Pull request size is medium.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@olavloite @sgorse12
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.