Skip site navigation (1) Skip section navigation (2)

Inquiry From Form [pgsql]

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 (view raw or flat)
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


pgsql-ports by date

Next:From: nitinDate: 2003-05-15 14:38:50
Subject: Inquiry From Form [pgsql]
Previous:From: Tom LaneDate: 2003-05-11 14:14:01
Subject: Re: failed compile csv version PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group