ecpg help

From: Lee Kindness <lkindness(at)csl(dot)co(dot)uk>
To: "sid(at)questions(dot)com" <sbhatt(at)installs(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, Lee Kindness <lkindness(at)csl(dot)co(dot)uk>
Subject: ecpg help
Date: 2002-06-28 13:18:33
Message-ID: 15644.25129.880888.202311@kelvin.csl.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)questions(dot)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.

In response to

  • ecpg help at 2002-06-27 16:26:02 from sid@questions.com

Browse pgsql-general by date

  From Date Subject
Next Message Christian 2002-06-28 13:24:09 Re: createdb error
Previous Message Markus Wollny 2002-06-28 13:16:16 FTI: help /w compiling/installation wanted (Full Text Index)