|
|
|
|
|
- Special cases
- Handling records during a transaction
- Transactions and independent HFSQL context
HTransactionFree (Function) In french: HTransactionLibère
Available only with these kinds of connection
Transforms all the records "in transaction" into "normal" records if these records do not belong to a transaction currently in progress. If a record in the specified data file is considered to be in a transaction, but does not belong to any current transaction, it is automatically freed. Caution: this is an advanced function. Use this feature when it is not possible to roll back incomplete transactions (e.g. files deleted from a transaction).
// Frees all the records in transaction that may be used HTransactionFree(Customer)
Syntax
Freeing a data file Hide the details
<Result> = HTransactionFree([<Data file>])
<Result>: Boolean - True if the operation is performed,
- False if a problem occurs. HErrorInfo returns more details about the error.
<Data file>: Optional character string Name of the HFSQL Classic or Client/Server data file for which the records in transaction must be freed. If this parameter is not specified, HTransactionFree handles the last data file used.
Freeing a record found in a data file Hide the details
<Result> = HTransactionFree([<Data file>, ] <Record number>)
<Result>: Boolean - True if the operation is performed,
- False if a problem occurs. HErrorInfo returns more details about the error.
<Data file>: Optional character string Name of the HFSQL Classic or HFSQL Client/Server data file for which the record in transaction must be freed. If this parameter is not specified, HTransactionFree handles the last data file used.
<Record number>: Integer Number of the record to be removed. If this parameter set to 0 or to the hCurrentRecNum constant, HTransactionFree will read the current record. Remarks Handling records during a transaction Transactions and independent HFSQL context When copying a context, if a transaction is in progress on the first context, the new context is not in transaction. You must call HTransactionStart (or HTransaction) to start a transaction in the new context.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|