Re: Problem with exec sql include

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Carmen Gloria Sepulveda Dedes <csepulveda(at)atichile(dot)com>
Cc: Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: Problem with exec sql include
Date: 2003-11-19 18:44:40
Message-ID: 20031119184440.GA14561@feivel.fam-meskes.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Randolf Richardson, DevNet SysOp 29 2003-11-19 18:48:57 Re: Humor me: Postgresql vs. MySql (esp. licensing)
Previous Message Marc G. Fournier 2003-11-19 18:43:21 Re: SuSE RPMs available for PostgreSQL 7.4