Skip to content

Commit 50f0461

Browse files
authored
Merge pull request #21 from hymkor/set
Enable `SET` to execute within a transaction.
2 parents 718c0e8 + a48e65e commit 50f0461

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

loop.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ func (ss *session) Loop(ctx context.Context, commandIn commandIn) error {
172172
} else {
173173
err = ErrInvalidRollback
174174
}
175-
case "SAVEPOINT", "SAVE", "RELEASE":
175+
176+
// Executable but return nothing, safe in transaction
177+
case "SAVEPOINT", "SAVE", "RELEASE", "SET":
176178
misc.Echo(ss.spool, query)
177179
err = doTCL(ctx, ss, query)
178180

release_note_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### Specification Changes
88

9-
- Enable `RELEASE SAVEPOINT`(#19) and `REPLACE INTO`(#20,MySQL) to execute within a transaction.
9+
- Enable `RELEASE SAVEPOINT`(#19), `REPLACE INTO`(#20,MySQL) and `SET`(#21) to execute within a transaction.
1010

1111
v0.26.0
1212
=======

release_note_ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### 仕様変更
88

9-
- `RELEASE SAVEPOINT` (#19), `REPLACE INTO` (#20,MySQL) もトランザクション内で実行できるようにした。
9+
- `RELEASE SAVEPOINT` (#19), `REPLACE INTO` (#20,MySQL), `SET`(#21) もトランザクション内で実行できるようにした。
1010

1111
v0.26.0
1212
=======

0 commit comments

Comments
 (0)