pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: Jürgen Cappel <email@juergen-cappel.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: ECPG and structure declaration
Date: Mon, 22 Sep 2003 08:33:46 +0200
Message-ID: <20030922063346.GA3480@feivel.fam-meskes.de> (raw)
In-Reply-To: <JEEKIPNAKJNCFLMOBKHGKEFGDBAA.email@juergen-cappel.de>
References: <JEEKIPNAKJNCFLMOBKHGKEFGDBAA.email@juergen-cappel.de>

On Sun, Sep 21, 2003 at 08:46:02AM +0200, Jürgen Cappel wrote:
> why is the following code fragment an error for ecpg ?
> 
> ---------------------------------------------
> EXEC SQL BEGIN DECLARE SECTION;
> struct base
> {
>     char  basekey [ 26 ];
> };
> EXEC SQL END DECLARE SECTION;

Because the struct is not used to define a variable.

The next release will be able to correctly parse this kind of definition
itself, but until then you have to list the whole struct definition
when defining the variable.

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!



view thread (2+ messages)

Message-ID: <20030922063346.GA3480@feivel.fam-meskes.de>
Permalink:  ../20030922063346.GA3480@feivel.fam-meskes.de/
Also on:    postgresql.org/message-id/20030922063346.GA3480@feivel.fam-meskes.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgresql.org, email@juergen-cappel.de
  Subject: Re: ECPG and structure declaration
  In-Reply-To: <20030922063346.GA3480@feivel.fam-meskes.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox