Re: ecpg - Mailing list pgsql-general

From Michael Meskes
Subject Re: ecpg
Date
Msg-id 20000911101250.A3481@feivel.credativ.de
Whole thread Raw
In response to ecpg  ("Chris McNett" <chrismcnett@hotmail.com>)
List pgsql-general
On Sun, Sep 10, 2000 at 11:12:35PM +0000, Chris McNett wrote:
> I'm getting error -402 (can't connect to database) when I use ecpg.  It
> compiled and linked fine.  The database works using the psql command.  Why
> isn't this working?

Strange. Could you please run your program under debug mode by adding

if ((dbgs = fopen("log", "w")) != NULL)
                ECPGdebug(1, dbgs);

and

if (dbgs != NULL)
                fclose(dbgs);

After that we should take a look into the file "log". Maybe we get more
details about this that way. Do you access the database via TCP/IP or
streams? Is it on localhost?

Michael
--
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

pgsql-general by date:

Previous
From: Marcin Mazurek
Date:
Subject: UNION on VIEW
Next
From: "Brian Baquiran"
Date:
Subject: Re: Transaction Manager