From 2978819928ba99fe3ddf37f4d705f7d65fd88af5 Mon Sep 17 00:00:00 2001 From: HAYAMA Kaoru <3752189+hymkor@users.noreply.github.com> Date: Tue, 11 Nov 2025 22:20:01 +0900 Subject: [PATCH 1/3] Fix: errors were not reported on `SAVEPOINT` and `SAVE` --- loop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loop.go b/loop.go index 8414cda..21cf2e6 100644 --- a/loop.go +++ b/loop.go @@ -174,7 +174,7 @@ func (ss *session) Loop(ctx context.Context, commandIn commandIn) error { } case "SAVEPOINT", "SAVE": misc.Echo(ss.spool, query) - doTCL(ctx, ss, query) + err = doTCL(ctx, ss, query) case "DELETE", "INSERT", "UPDATE", "MERGE": misc.Echo(ss.spool, query) isNewTx := (ss.tx == nil) From 47f967d71a3fa44b5cb837aa49ae619ee2c1645a Mon Sep 17 00:00:00 2001 From: HAYAMA Kaoru <3752189+hymkor@users.noreply.github.com> Date: Tue, 11 Nov 2025 22:20:01 +0900 Subject: [PATCH 2/3] `RELEASE` are now treated as the executable command even in a transaction --- loop.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loop.go b/loop.go index 21cf2e6..e819c3a 100644 --- a/loop.go +++ b/loop.go @@ -172,7 +172,7 @@ func (ss *session) Loop(ctx context.Context, commandIn commandIn) error { } else { err = ErrInvalidRollback } - case "SAVEPOINT", "SAVE": + case "SAVEPOINT", "SAVE", "RELEASE": misc.Echo(ss.spool, query) err = doTCL(ctx, ss, query) case "DELETE", "INSERT", "UPDATE", "MERGE": From 25db95dba17e09a633e975140af54db9bafbe923 Mon Sep 17 00:00:00 2001 From: HAYAMA Kaoru <3752189+hymkor@users.noreply.github.com> Date: Tue, 11 Nov 2025 22:37:59 +0900 Subject: [PATCH 3/3] Release notes: mentioned to #19 --- release_note_en.md | 8 ++++++++ release_note_ja.md | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/release_note_en.md b/release_note_en.md index c928ecd..df9b253 100644 --- a/release_note_en.md +++ b/release_note_en.md @@ -1,5 +1,13 @@ ( **English** / [Japanese](release_note_ja.md) ) +### Bug fixes + +- Fix: Errors were not reported during execution of `SAVEPOINT` and `SAVE TRANSACTION`. (#19) + +### Specification Changes + +- Enable `RELEASE SAVEPOINT` to execute within a transaction. (#19) + v0.26.0 ======= Nov 11, 2025 diff --git a/release_note_ja.md b/release_note_ja.md index 9e5e15d..f8e06b8 100644 --- a/release_note_ja.md +++ b/release_note_ja.md @@ -1,5 +1,13 @@ ( [English](release_note_en.md) / **Japanese** ) +### 不具合修正 + +- `SAVEPOINT`, `SAVE TRANSACTION` の実行中にエラーが発生してもメッセージが表示されなかった問題を修正 (#19) + +### 仕様変更 + +- `RELEASE SAVEPOINT` もトランザクション内で実行できるようにした。(#19) + v0.26.0 ======= Nov 11, 2025