Thread: ecpg

ecpg

From
"Chris McNett"
Date:
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?

Thanks!
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.


Re: ecpg

From
Marcin Mazurek
Date:
Chris McNett (chrismcnett@hotmail.com) napisał:

> 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?
btw. was anybody checking which compiler on i386 platform is the best to
use, to receive themost optimized code?
tia

Marcin Mazurek

--
Kierownik Działu Systemowego
MULTINET SA o/Poznan
http://www.multinet.pl/

Re: ecpg

From
Michael Meskes
Date:
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!