Re: Problem with exec sql include - Mailing list pgsql-general

From Michael Meskes
Subject Re: Problem with exec sql include
Date
Msg-id 20031119184440.GA14561@feivel.fam-meskes.de
Whole thread Raw
In response to Re: Problem with exec sql include  (Carmen Gloria Sepulveda Dedes <csepulveda@atichile.com>)
List pgsql-general
On Wed, Nov 19, 2003 at 12:26:07PM -0300, Carmen Gloria Sepulveda Dedes wrote:
> In the test.pgc file, I do:
>
>    EXEC SQL BEGIN DECLARE SECTION;
>         exec sql include test;
>         struct_cursor t_cursor;
>    EXEC SQL END DECLARE SECTION;
>
> ... and it works fine.  It is correct????

Depends on what test.h contains. ecpg has to learn the definition of
your struct somewhere.

Michael

--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

pgsql-general by date:

Previous
From: Deibys Fernando Quintero
Date:
Subject: Japanese and PostgreSQL
Next
From: Lamar Owen
Date:
Subject: Re: SuSE RPMs available for PostgreSQL 7.4