Re: ecpg problem in 7.4 beta

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: ecpg problem in 7.4 beta
Дата
Msg-id 200308070443.h774hW211357@candle.pha.pa.us
обсуждение исходный текст
Ответ на ecpg problem in 7.4 beta  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: ecpg problem in 7.4 beta  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: ecpg problem in 7.4 beta  (Peter Eisentraut <peter_e@gmx.net>)
Список 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 по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: ecpg problem in 7.4 beta
Следующее
От: Tom Lane
Дата:
Сообщение: Re: ecpg problem in 7.4 beta