Skip to content

Commit 2884c10

Browse files
authored
Merge pull request #19 from hymkor/release-transaction
- Fix: Errors were not reported during execution of `SAVEPOINT` and `SAVE TRANSACTION`. (#19) - Enable `RELEASE SAVEPOINT` to execute within a transaction. (#19)
2 parents 9ea9d36 + 25db95d commit 2884c10

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

loop.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ func (ss *session) Loop(ctx context.Context, commandIn commandIn) error {
172172
} else {
173173
err = ErrInvalidRollback
174174
}
175-
case "SAVEPOINT", "SAVE":
175+
case "SAVEPOINT", "SAVE", "RELEASE":
176176
misc.Echo(ss.spool, query)
177-
doTCL(ctx, ss, query)
177+
err = doTCL(ctx, ss, query)
178178
case "DELETE", "INSERT", "UPDATE", "MERGE":
179179
misc.Echo(ss.spool, query)
180180
isNewTx := (ss.tx == nil)

release_note_en.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
( **English** / [Japanese](release_note_ja.md) )
22

3+
### Bug fixes
4+
5+
- Fix: Errors were not reported during execution of `SAVEPOINT` and `SAVE TRANSACTION`. (#19)
6+
7+
### Specification Changes
8+
9+
- Enable `RELEASE SAVEPOINT` to execute within a transaction. (#19)
10+
311
v0.26.0
412
=======
513
Nov 11, 2025

release_note_ja.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
( [English](release_note_en.md) / **Japanese** )
22

3+
### 不具合修正
4+
5+
- `SAVEPOINT`, `SAVE TRANSACTION` の実行中にエラーが発生してもメッセージが表示されなかった問題を修正 (#19)
6+
7+
### 仕様変更
8+
9+
- `RELEASE SAVEPOINT` もトランザクション内で実行できるようにした。(#19)
10+
311
v0.26.0
412
=======
513
Nov 11, 2025

0 commit comments

Comments
 (0)