|
|
|
|
|
- Error cases
- Handling records during a transaction
- Transactions and independent HFSQL context
- OLE DB and Native Connectors
<Connection variable>.TransactionEnd (Función)
No disponible con este tipo de conexión
Validates the current transaction: MyConnection1 is Connection
MyConnection1.TransactionStart()
WHEN EXCEPTION IN
Order.Add()
MyConnection1.TransactionEnd()
DO
MyConnection1.TransactionCancel()
END
Sintaxis
Validar una transacción en curso en una conexión Ocultar los detalles
<Result> = <Connection>.TransactionEnd()
<Result>: Booleano - True if the transaction is ended,
- False if a problem occurs. HErrorInfo returns more details about the error.
Caution: If a global transaction is started, the function does nothing.. The syntax 2 must be used.
<Connection>: Variable de tipo Connection Name of the Connection variable that describes the connection to use. <Result>: Booleano - True if the transaction is ended,
- False if a problem occurs. HErrorInfo returns more details about the error.
Observaciones Error cases - Transaction nesting: it is not possible to nest transactions (i.e. to call function <variable Connection>.TransactionStart or function <Variable Connection>.Transaction within a transaction).. In this case, error 70031 occurs.
- A fatal error is displayed in the following cases:
- A transaction is started on all the connections while there is at least one connection in transaction.
- A transaction is started on a connection while a transaction was already started on all the connections.
- A transaction is started on all the connections while there is at least one connection whose isolation level is not "Read Uncommitted".
Handling records during a transaction Transactions and independent HFSQL context
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|