From: Jürgen Cappel <email@juergen-cappel.de>
To: pgsql-interfaces@postgresql.org
Subject: ecpg odd syntax error at array index
Date: Sat, 27 Dec 2003 15:18:45 +0100
Message-ID: <JEEKIPNAKJNCFLMOBKHGMEALDCAA.email@juergen-cappel.de> (raw)
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
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: email@juergen-cappel.de
Subject: Re: ecpg odd syntax error at array index
In-Reply-To: <JEEKIPNAKJNCFLMOBKHGMEALDCAA.email@juergen-cappel.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