ECPG: How to use #define and string host variable

Поиск
Список
Период
Сортировка
От reply2nelson@yahoo.com (Nelson)
Тема ECPG: How to use #define and string host variable
Дата
Msg-id 87d854b8.0201021022.681de39c@posting.google.com
обсуждение исходный текст
Ответы Re: ECPG: How to use #define and string host variable  (Michael Meskes <meskes@postgresql.org>)
Список pgsql-interfaces
I want to declare a character string's
length as a #define and below gives me:

ERROR: parse error, expecting `CVARIABLE' or `ICONST' or `']'' or `'('
' at or near "MAX"


#define MAX 10

EXEC SQL BEGIN DECLARE SECTION;  char t[MAX];
EXEC SQL END DECLARE SECTION;


How do I make the precompiler see the define?

Thanks.


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

Предыдущее
От: Björn Lundin
Дата:
Сообщение: Ada interface (tihick)
Следующее
От: Jakob Lund
Дата:
Сообщение: PQfinish also kills my dll