commit method
Implementation
@override
void commit() {
if (active) {
closeDataSets();
if (logEvent(TDBEventType.detCommit)) {
log(TDBEventType.detCommit, SCommitting);
}
// The inherited closetrans must always be called.
// So the last (FTrans=Nil) is for the case of forced close.
// (Bug IDs 35246 and 33737)
// Order is important: some connections do not have FTrans, but
// they must still go through AttemptCommit. (original comment kept as-is)
if (_options.contains(TSQLTransactionOption.stoUseImplicit) ||
sqlConnection!.attemptCommit(_trans!) ||
_trans == null) {
closeTrans();
_trans = null; // FreeAndNil
}
}
}