BUG #4150: ecpg: update/insert of array data does not work anymore since Version 8.2 - Mailing list pgsql-bugs

From Christian Lippuner
Subject BUG #4150: ecpg: update/insert of array data does not work anymore since Version 8.2
Date
Msg-id 200805091702.m49H2ngR080498@wwwmaster.postgresql.org
Whole thread Raw
List pgsql-bugs
The following bug has been logged online:

Bug reference:      4150
Logged by:          Christian Lippuner
Email address:      cl@eps.ch
PostgreSQL version: 8.2.7/8.3.1
Operating system:   Linux
Description:        ecpg: update/insert of array data does not work anymore
since Version 8.2
Details:

From version 7.3 up to 8.1 the following code works fine:

EXEC SQL BEGIN declare section;
  static short sqlNumber;
  static short sqlTestArray[8];
EXEC SQL END declare section;
..
..
  EXEC SQL UPDATE test_table SET
    number = :sqlNumber,
    testarray = :sqlTestArray
    WHERE number = :sqlNumber;
    stat = sqlca.sqlcode;
...
...

Since Version 8.2 I get the following error message after
precompiling/compiling/linking this code:
"array value must start with "{" or dimension information"

In general all updating or insert of new data with an array doesn't work
anymore sing Version 8.2.
Reading the data just works fine.

pgsql-bugs by date:

Previous
From: Aleksej Saushev
Date:
Subject: Re: BUG #4053: libpq documentation should express clearly, that integers are passed in network octet order
Next
From: Martin Pitt
Date:
Subject: Re: reproducible database crash with simple sql command