diff --git a/loop.go b/loop.go index 8414cda..e819c3a 100644 --- a/loop.go +++ b/loop.go @@ -172,9 +172,9 @@ 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) - doTCL(ctx, ss, query) + err = doTCL(ctx, ss, query) case "DELETE", "INSERT", "UPDATE", "MERGE": misc.Echo(ss.spool, query) isNewTx := (ss.tx == nil) 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