From: | jcvacher <jcvacher(at)fr(dot)netcentrex(dot)net> |
---|---|
To: | info(at)pgsql(dot)com |
Subject: | Inquiry From Form [pgsql] |
Date: | 2003-05-13 15:32:47 |
Message-ID: | 20030513153247.64543184FA4F@hub.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-ports |
Hello
I have a little problem:
I have a postmaster started on a NT workstation. And i try do do a little sample to do a select request with the c api.
In the main I do that:
VersionRequested = MAKEWORD(2, 0);
Error = WSAStartup(VersionRequested, &WsaData);
if (Error) {
printf(\"Could not find high enough version of WinSock\\n\");
exit(-1);
}
PGconn *myConnection = PQsetdb(\"localhost\", \"5432\", NULL, NULL, \"mydb\");
But the result of \'PQstatus(myConnection)\' is always CONNECTION_BAD with the error message:
\'could not send startup packet: Socket is not connected\'
Have you an idea of the problem?
Cordially
Jean-Christophe VACHER
From | Date | Subject | |
---|---|---|---|
Next Message | nitin | 2003-05-15 14:38:50 | Inquiry From Form [pgsql] |
Previous Message | Tom Lane | 2003-05-11 14:14:01 | Re: failed compile csv version PostgreSQL |