ecpg help

Поиск
Список
Период
Сортировка
От Lee Kindness
Тема ecpg help
Дата
Msg-id 15644.25129.880888.202311@kelvin.csl.co.uk
обсуждение исходный текст
Ответ на ecpg help  ("sid@questions.com" <sbhatt@installs.com>)
Список pgsql-general
Try this:

  EXEC SQL DEFINE NUM 20
  EXEC SQL BEGIN DECLARE SECTION;
  char myvar[NUM];
  EXEC SQL END DECLARE SECTION;

Regards, Lee Kindness.

sid@questions.com writes:
 > I am trying to use preprocessor directives inside the declare statements but
 > its giving me compile time errors.
 > What i am do is something like this
 >
 > EXEC SQL BEGIN DECLARE SECTION;
 > char myvar[NUM];
 > EXEC SQL END DECLARE SECTION;
 >
 > #define NUM 20 is present in one of the include files.



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

Предыдущее
От: "Markus Wollny"
Дата:
Сообщение: FTI: help /w compiling/installation wanted (Full Text Index)
Следующее
От: Chris Humphries
Дата:
Сообщение: Re: What is a tuple?