Re: ecpg problem in 7.4 beta - Mailing list pgsql-interfaces

From Bruce Momjian
Subject Re: ecpg problem in 7.4 beta
Date
Msg-id 200308070443.h774hW211357@candle.pha.pa.us
Whole thread Raw
In response to ecpg problem in 7.4 beta  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: ecpg problem in 7.4 beta
Re: ecpg problem in 7.4 beta
List pgsql-interfaces
OK, I think I can fix this.  The include of postgres_fe.h was done
recently:revision 1.54date: 2003/08/01 13:53:36;  author: petere;  state: Exp;  lines: +4 -2Make ecpg SQLSTATE-aware.
Mapexisting SQLCODE assignments to SQLSTATEs,rather than parsing the message.  Add some documentation about
embeddedSQL.

It seems like doing postgres_fe.h rather than postgres_ext.h was just an
oversight, so I will make the change in CVS.

---------------------------------------------------------------------------

Bruce Momjian wrote:
> I tried running ecpg in 7.4 beta and got:
>     
>     $ ecpg x.pgc
>     $ gcc -I/usr/local/pgsql/include -L/usr/local/pgsql/lib -lpgtypes -lecpg x.c
>     In file included from x.c:4:
>     /usr/local/pgsql/include/ecpglib.h:9: postgres_fe.h: No such file or
>     directory
> 
> Why is ecpglib.h referencing postgres_fe.h?  I only see postgres_fe.h in
> the install directory under pgsql/include/internal.
> 
> -- 
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 359-1001
>   +  If your life is a hard drive,     |  13 Roberts Road
>   +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
> 

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-interfaces by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: ecpg problem in 7.4 beta
Next
From: Tom Lane
Date:
Subject: Re: ecpg problem in 7.4 beta