Document two phase commit commands in ecpg docu.
authorMichael Meskes
Mon, 13 Mar 2017 19:48:29 +0000 (20:48 +0100)
committerMichael Meskes
Mon, 13 Mar 2017 20:03:55 +0000 (21:03 +0100)
Patch by Masahiko Sawada

doc/src/sgml/ecpg.sgml

index b8021cbe5b42ecbfeee6069b47c290e3da1a726c..bc4dd686208a1c072be6d114b17f5dd620066adb 100644 (file)
@@ -507,6 +507,35 @@ EXEC SQL COMMIT;
       
      
 
+    
+     
+      EXEC SQL PREPARE TRANSACTION transaction_id
+      
+       
+        Prepare the current transaction for two-phase commit.
+       
+      
+     
+
+    
+     
+      EXEC SQL COMMIT PREPARED transaction_id
+      
+       
+        Commit a transaction that is in prepared state.
+       
+      
+     
+
+     
+      EXEC SQL ROLLBACK PREPARED transaction_id
+      
+       
+        Roll back a transaction that is in prepared state.
+       
+      
+     
+     
      
       EXEC SQL SET AUTOCOMMIT TO ON