소스 검색

* Correction in connection pooling, we were leaking connections

git-svn-id: trunk@25522 -
michael 12 년 전
부모
커밋
a814e0eb27
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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));