SET TRANSACTION
This is not a hidden command which is not mentioned in the output from the help set
command but a Firebird SQL statement.
There is a default transaction started for you when you use isql
.When you commit or rollback in isql
, the default transaction ends, and a new default transaction begins.These implicitly started transactions — by default — use the SET TRANSACTION
defaults, which are:
-
READ WRITE
— meaning that any SQL statement that is executed may make changes in the database. -
WAIT
— meaning that if a row in a table is currently locked by another session, the execution of the statement will wait until the other session either commits or rolls back. -
SNAPSHOT
— meaning that this transaction will be guaranteed a non-volatile view of the data and will be unaffected by any changes made and committed in any other transactions that take place while this one remains unfinished by a commit or rollback.
If [isql-set-keep-tran-params] is on, implicitly started transactions will use the last SET TRANSACTION
statement executed.
A full explanation of transactions is beyond the scope of this manual.For more information see the Firebird Language Reference for your Firebird version, or The Firebird Book by Helen Borrie.
For example, see SET TRANSACTION
in the Firebird 5.0 Language Reference.