Skip to content

Commit 0267c67

Browse files
committed
Fix controle transação
1 parent 0968ac9 commit 0267c67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MiniREST.SQL.SQLDb.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ procedure TMiniRESTSQLConnectionSQLDb.SetMiniRESTSQLParamToSQLParam(AMiniRESTSQL
531531
function TMiniRESTSQLConnectionSQLDb.InTransaction: Boolean;
532532
begin
533533
CheckConnectionIsValid;
534-
Result := FSQLConnection.Transaction.Active;
534+
Result := FInExplicitTransaction and FSQLConnection.Transaction.Active;
535535
end;
536536

537537
function TMiniRESTSQLConnectionFactorySQLDb.GetConnectionsCount: Integer;

0 commit comments

Comments
 (0)