Skip to content

Commit 4c29c17

Browse files
feat: support PostgreSQL END statement (googleapis#2131)
* feat: support PostgreSQL END statement Adds support for the PostgreSQL END statement in the Connection API. Fixes googleapis#2130 * 🦉 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 d0195b4 commit 4c29c17

File tree

4 files changed

+36604
-15572
lines changed

4 files changed

+36604
-15572
lines changed

google-cloud-spanner/src/main/resources/com/google/cloud/spanner/connection/PG_ClientSideStatements.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,16 @@
193193
]
194194
},
195195
{
196-
"name": "COMMIT [TRANSACTION | WORK] [AND NO CHAIN]",
196+
"name": "{END | COMMIT} [TRANSACTION | WORK] [AND NO CHAIN]",
197197
"executorName": "ClientSideStatementNoParamExecutor",
198198
"resultType": "NO_RESULT",
199199
"statementType": "COMMIT",
200-
"regex": "(?is)\\A\\s*(?:commit)(?:\\s+transaction|\\s+work)?(?:\\s+and\\s+no\\s+chain)?\\s*\\z",
200+
"regex": "(?is)\\A\\s*(?:commit|end)(?:\\s+transaction|\\s+work)?(?:\\s+and\\s+no\\s+chain)?\\s*\\z",
201201
"method": "statementCommit",
202-
"exampleStatements": ["commit", "commit transaction", "commit work", "commit and no chain", "commit transaction and no chain", "commit work and no chain"],
202+
"exampleStatements": [
203+
"commit", "commit transaction", "commit work", "commit and no chain", "commit transaction and no chain", "commit work and no chain",
204+
"end", "end transaction", "end work", "end and no chain", "end transaction and no chain", "end work and no chain"
205+
],
203206
"examplePrerequisiteStatements": ["begin transaction"]
204207
},
205208
{

0 commit comments

Comments
 (0)