summaryrefslogtreecommitdiff
path: root/doc/src/sgml/ref/commit.sgml
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2019-09-08 16:11:21 +0200
committerPeter Eisentraut <peter@eisentraut.org>2019-09-08 16:22:51 +0200
commitb6d72ddd5fbf3f6eb79597ab0c8ec3aaa7c16805 (patch)
tree17de93437ec092f2dbf3708a3f5bad38caa3627b /doc/src/sgml/ref/commit.sgml
parent422910423b6cba6abc3790b8f20854c9e78e04a4 (diff)
Fix behavior of AND CHAIN outside of explicit transaction blocks
When using COMMIT AND CHAIN or ROLLBACK AND CHAIN not in an explicit transaction block, the previous implementation would leave a transaction block active in the ROLLBACK case but not the COMMIT case. To fix for now, error out when using these commands not in an explicit transaction block. This restriction could be lifted if a sensible definition and implementation is found. Bug: #15977 Author: fn ln <emuser20140816@gmail.com> Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
Diffstat (limited to 'doc/src/sgml/ref/commit.sgml')
-rw-r--r--doc/src/sgml/ref/commit.sgml3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/commit.sgml b/doc/src/sgml/ref/commit.sgml
index e4169cd2c62..5f244cdd3c1 100644
--- a/doc/src/sgml/ref/commit.sgml
+++ b/doc/src/sgml/ref/commit.sgml
@@ -77,7 +77,8 @@ COMMIT [ WORK | TRANSACTION ] [ AND [ NO ] CHAIN ]
<para>
Issuing <command>COMMIT</command> when not inside a transaction does
- no harm, but it will provoke a warning message.
+ no harm, but it will provoke a warning message. <command>COMMIT AND
+ CHAIN</command> when not inside a transaction is an error.
</para>
</refsect1>