Explorar o código

* Correction in connection pooling, we were leaking connections

git-svn-id: trunk@25522 -
michael %!s(int64=12) %!d(string=hai) anos
pai
achega
a814e0eb27
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      packages/fcl-db/src/sqldb/postgres/pqconnection.pp

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

@@ -409,6 +409,7 @@ begin
   else
     begin
     tr.PGConn := PQconnectdb(pchar(FConnectString));
+    T.FPGConn:=tr.PGConn;
     CheckConnectionStatus(tr.PGConn);
     if CharSet <> '' then
       PQsetClientEncoding(tr.PGConn, pchar(CharSet));