5. Using a Distributed Database : Connecting Directly to a Local Database : Direct Execute Immediate Statement : Avoiding Execute Errors During Two-Phase Commit
 
Share this page                  
Avoiding Execute Errors During Two-Phase Commit
It has already been pointed out that the transaction statements commit and rollback are illegal to use for direct execution in an Ingres Star session. These statements must not be passed through Ingres Star for execution on a remote non-distributed database or Enterprise Access because these statements can interfere with two-phase commits. This means that you must not attempt to implement remotely through Ingres Star:
A direct execute immediate statement to execute commit or rollback
A registered procedure, or a direct execute immediate statement to execute a procedure, that contains commit or rollback
Ingres Star, under the latest release of Ingres, detects such errors and returns an error message without performing the operation. However, earlier versions of Ingres serving the remote non-distributed database or Enterprise Access may not detect such errors.
Important!  If a user's commit or rollback statement is passed through Ingres Star and executed by an earlier release of Ingres during two-phase commit, the two-phase commit protocol may be disrupted and could corrupt the database.