diff --git a/loop.go b/loop.go index eb5bd2a..41cf921 100644 --- a/loop.go +++ b/loop.go @@ -172,7 +172,9 @@ func (ss *session) Loop(ctx context.Context, commandIn commandIn) error { } else { err = ErrInvalidRollback } - case "SAVEPOINT", "SAVE", "RELEASE": + + // Executable but return nothing, safe in transaction + case "SAVEPOINT", "SAVE", "RELEASE", "SET": misc.Echo(ss.spool, query) err = doTCL(ctx, ss, query) diff --git a/release_note_en.md b/release_note_en.md index b866c67..4dfb323 100644 --- a/release_note_en.md +++ b/release_note_en.md @@ -6,7 +6,7 @@ ### Specification Changes -- Enable `RELEASE SAVEPOINT`(#19) and `REPLACE INTO`(#20,MySQL) to execute within a transaction. +- Enable `RELEASE SAVEPOINT`(#19), `REPLACE INTO`(#20,MySQL) and `SET`(#21) to execute within a transaction. v0.26.0 ======= diff --git a/release_note_ja.md b/release_note_ja.md index a2c5fae..dac6fc8 100644 --- a/release_note_ja.md +++ b/release_note_ja.md @@ -6,7 +6,7 @@ ### 仕様変更 -- `RELEASE SAVEPOINT` (#19), `REPLACE INTO` (#20,MySQL) もトランザクション内で実行できるようにした。 +- `RELEASE SAVEPOINT` (#19), `REPLACE INTO` (#20,MySQL), `SET`(#21) もトランザクション内で実行できるようにした。 v0.26.0 =======