Initializing Transaction Names

From InterBase

Go Up to Naming Transactions


Once transaction names are declared, they should be initialized to zero before being used for the first time. The following C code illustrates how to set a starting value for two declared transaction names:

/* initialize transaction names to zero */
t1 = t2 = (isc_tr_handle) NULL;

Once a transaction name is declared and initialized, it can be used to:

  • Start and name a transaction. Using a transaction name for all transactions except for the default transaction is required if a program runs multiple, simultaneous transactions.
  • Specify which transactions control data manipulation statements. Transaction names are required in multi-transaction programs, unless a statement affects only the default transaction.
  • Commit or roll back specific transactions in a multi-transaction program.

Advance To: