pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
ecpg odd syntax error at array index
2+ messages / 2 participants
[nested] [flat]

* ecpg odd syntax error at array index
@ 2003-12-27 14:18 Jürgen Cappel <email@juergen-cappel.de>
  2003-12-29 13:54 ` Re: ecpg odd syntax error at array index Michael Meskes <meskes@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Jürgen Cappel @ 2003-12-27 14:18 UTC (permalink / raw)
  To: pgsql-interfaces

Hello,

seems odd, but why is the first SELECT a, quote: syntax error at or near "["
while the second one is OK ?  Do spaces really make a difference for ecpg
before an array index ?

myfunction ()
{
    EXEC SQL BEGIN DECLARE SECTION;
    char  chtm[23][19];
    EXEC SQL END DECLARE SECTION;

    EXEC SQL SELECT mycolumn INTO :chtm[ 0] FROM mytable WHERE ...;
    EXEC SQL SELECT mycolumn INTO :chtm[1] FROM mytable WHERE ...;
}

Versions are:

ecpg (PostgreSQL 7.4) 3.0.0
Linux scaleo 2.4.18-4GB #1 Wed Mar 27 13:57:05 UTC 2002 i686 unknown

Jürgen Cappel




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: ecpg odd syntax error at array index
  2003-12-27 14:18 ecpg odd syntax error at array index Jürgen Cappel <email@juergen-cappel.de>
@ 2003-12-29 13:54 ` Michael Meskes <meskes@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Meskes @ 2003-12-29 13:54 UTC (permalink / raw)
  To: Jürgen Cappel <email@juergen-cappel.de>; +Cc: pgsql-interfaces

On Sat, Dec 27, 2003 at 03:18:45PM +0100, Jürgen Cappel wrote:
> seems odd, but why is the first SELECT a, quote: syntax error at or near "["
> while the second one is OK ?  Do spaces really make a difference for ecpg
> before an array index ?

Unfortunatley yes. I just fixed this in CVS. 

As for the other bug you reported I have to dig a little deeper to see
what happens.

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!



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-12-29 13:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-12-27 14:18 ecpg odd syntax error at array index Jürgen Cappel <email@juergen-cappel.de>
2003-12-29 13:54 ` Michael Meskes <meskes@postgresql.org>

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