ZPlainPostgreSqlDriver bug?
Posted: 03.12.2010, 16:45
Hi, I updated my Zeos to 6.6.6-stable and found an exception that didn't appear in previous versions.
To reproduce it you have to create a program following the next steps:
1) Connect to a PG-8.x database and do some queries.
2) Disconnect the network cable on the client machine.
3) Try to do a new query. This will raise the exception "SQL Error: server closed the connection unexpectedly...". This is ok.
4) From your program do an FConnection.Close.
In the step 4, on ZPlainPostgreSqlDriver, method TZPostgreSQL8PlainDriver.Finish(Handle: PZPostgreSQLConnect); I got an Access Violation on ZPlainPostgreSql8.PQfinish(Handle);
Any hint?
P.D.: I'm using libpq.dll version 8.2.6.8004 and Delphi 7.
To reproduce it you have to create a program following the next steps:
1) Connect to a PG-8.x database and do some queries.
2) Disconnect the network cable on the client machine.
3) Try to do a new query. This will raise the exception "SQL Error: server closed the connection unexpectedly...". This is ok.
4) From your program do an FConnection.Close.
In the step 4, on ZPlainPostgreSqlDriver, method TZPostgreSQL8PlainDriver.Finish(Handle: PZPostgreSQLConnect); I got an Access Violation on ZPlainPostgreSql8.PQfinish(Handle);
Any hint?
P.D.: I'm using libpq.dll version 8.2.6.8004 and Delphi 7.