11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Configuration, then select Advanced Settings. On the pull-down Category list select Miscellaneous.View and edit the current setting of ConsoleFile. By default this setting is blank,routing console messages to cconsole.log. If you change this setting, you must restart <strong>Caché</strong>for this change to take effect.SQL and Transactions<strong>Caché</strong> <strong>ObjectScript</strong> transaction processing, using TSTART and TCOMMIT orTROLLBACK, differs from, and is incompatible with, SQL transaction processing usingthe SQL statements START TRANSACTION, and COMMIT or ROLLBACK. An applicationshould use one type of transaction processing throughout, and not attempt to mix thetwo.<strong>Caché</strong> <strong>ObjectScript</strong> transaction processing provides limited support for nested transactions.SQL transaction processing supplies support for savepoints within transactions.Variables and $INCREMENTTROLLBACK rolls back all journaled operations. However, not all changes made by anapplication are journaled.• TROLLBACK rolls back changes to global variables.• TROLLBACK does not roll back $INCREMENT (or $ZINCREMENT) changes toglobal variables.• TROLLBACK does not roll back changes to local variables or process-private globals.Globals and TROLLBACK 1TROLLBACK 1 rolls back and restores all globals changed within its nested transaction.However, if globals are changed that are mapped to a remote system that does not supportnested transactions, these changes are treated as occurring at the outermost nested level. Suchglobals are only rolled back when a rollback resets $TLEVEL to 0, either by callingTROLLBACK or by calling TROLLBACK 1 when $TLEVEL=1.Locks and TROLLBACK 1TROLLBACKTROLLBACK 1 restores all locks to their state prior to the corresponding TSTART. Thatis, it releases all locks created during its nested transaction, and restores all pre-existing locksto their state prior to its nested transaction. A TCOMMIT of a nested transaction does notrelease the corresponding locks, so a subsequent TROLLBACK can effect locks in a committedsub-transaction.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 139

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!