mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-09 07:28:26 +02:00
fcl-db: sqldb: ExecuteDirect should call StartImplicitTransaction, when Transaction.Options contains stoUseImplicit (else it leads later to AV due to nil Transaction.Handle)
git-svn-id: trunk@30920 -
This commit is contained in:
parent
b18365fb61
commit
242d750ef5
@ -1224,7 +1224,7 @@ begin
|
||||
DatabaseError(SErrTransactionnSet);
|
||||
|
||||
if not Connected then Open;
|
||||
if not (ATransaction.Active or (stoUseImplicit in ATransaction.Options)) then
|
||||
if not ATransaction.Active then
|
||||
ATransaction.MaybeStartTransaction;
|
||||
|
||||
try
|
||||
|
Loading…
Reference in New Issue
Block a user