ECPG and typedef struct

Поиск
Список
Период
Сортировка
От Edmund Bacon
Тема ECPG and typedef struct
Дата
Msg-id 1074537096.4164.117.camel@elb_lx.onesystem.ca
обсуждение исходный текст
Ответы Re: ECPG and typedef struct  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-interfaces
Is it still necessary to define SQL TYPEs twice?

eg

typedef struct foo { ... } foo_t;

EXEC SQL TYPE foo_t IS struct foo { ... };

Is there some less maintenance-error-prone way to accomplish this?  I
know about the -c option to ecpg, but this doesn't help if I need to
access the defined type from a .c file.

Ideally the C level typedef would be in a .h file somewhere and either
#include-ed or EXEC SQL INCLUDE-ed into .c or .pgc file

Thanks

-- 
Edmund Bacon <ebacon@onesystem.com>



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: L J Bayuk
Дата:
Сообщение: Re: PQsetNoticeReceiver issues
Следующее
От: Christof Petig
Дата:
Сообщение: Re: ECPG and EXEC SQL GET DIAGNOSTICS