소스 검색

* Patch from Luxa Olivetti, fix for issue #33737

Michaël Van Canneyt 3 년 전
부모
커밋
27f8f077d5
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      packages/fcl-db/src/sqldb/postgres/pqconnection.pp

+ 5 - 0
packages/fcl-db/src/sqldb/postgres/pqconnection.pp

@@ -987,6 +987,11 @@ begin
     begin
     PQclear(res);
     res:=nil;
+    if ForcedClose then
+    begin
+      FPrepared := False;
+      exit;
+    end;
     if FPrepared then
       begin
       if assigned(tr) and (PQtransactionStatus(tr.PGConn) <> PQTRANS_INERROR) then