[Mono-list] Postgresql client on Windows
Jaroslaw Kowalski
jarek@atm.com.pl
Thu, 21 Nov 2002 10:52:36 +0100
Hi!
Yesterday I've tried to compile Postgresql client on Windows using VS.NET.
It compiled fine, but somehow it failed to work.
What I was trying to do was to connect to 7.1.3 server on Linux from Windows
with PQ.DLL library from 7.2.1 version, because I couldn't find old PQ.DLL
library, maybe that's the reason why it fails. Upgrading DB is not an option
right now.
With debugger I found that I was getting NullPointerException in
PostgresLibrary.PQexec() and PostgresLibrary.PQgetvalue().
I observed that by adding SetLastError=false to DllImport attribute on
PQexec function I could get rid of NullPointerException on it. PQgetvalue()
still fails, however.
I would appreciate if anyone could send me/point me to a binary of pq.dll
from 7.1.3 version plus any cygwin dependencies of it. Do you have any
suggestions beside aligning versions?
Jarek