ecpg help - Mailing list pgsql-general

From Lee Kindness
Subject ecpg help
Date
Msg-id 15644.25129.880888.202311@kelvin.csl.co.uk
Whole thread Raw
In response to ecpg help  ("sid@questions.com" <sbhatt@installs.com>)
List 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 by date:

Previous
From: "Markus Wollny"
Date:
Subject: FTI: help /w compiling/installation wanted (Full Text Index)
Next
From: Chris Humphries
Date:
Subject: Re: What is a tuple?