ecpg odd syntax error at array index - Mailing list pgsql-interfaces

From Jürgen Cappel
Subject ecpg odd syntax error at array index
Date
Msg-id JEEKIPNAKJNCFLMOBKHGMEALDCAA.email@juergen-cappel.de
Whole thread Raw
Responses Re: ecpg odd syntax error at array index
List 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
mytableWHERE ...;
 
}

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



pgsql-interfaces by date:

Previous
From: Jürgen Cappel
Date:
Subject: ecpg with nested structure
Next
From: Michael Meskes
Date:
Subject: Re: ecpg odd syntax error at array index