Thread: ECPG: No multidimensional array support for simple data types

ECPG: No multidimensional array support for simple data types

From
"mike stanton"
Date:
Hello all, I get the following error message when ecpg precompiles an EXEC SQL INCLUDE on this variable:
 
short           cst_vent[MAX_SUC][12]; (MAX_SUC is defined as 24)
 
Mesage:

     "No multidimensional array support for simple data types"

Is there a fix or am I stuck?
Version: PostgreSQL 8.3.6 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.2.4
 
 
Michael Stanton W.

Re: ECPG: No multidimensional array support for simple data types

From
Boszormenyi Zoltan
Date:
mike stanton írta:
> Hello all, I get the following error message when ecpg precompiles an
> EXEC SQL INCLUDE on this variable:
>
> short           cst_vent[MAX_SUC][12]; (MAX_SUC is defined as 24)
>
> Mesage:
>
>      "No multidimensional array support for simple data types"
>
> Is there a fix or am I stuck?
> Version: PostgreSQL 8.3.6 on i686-pc-linux-gnu, compiled by GCC gcc
> (GCC) 4.2.4

You're stuck. Only 1D arrays are supported for "simple" (int, double,
etc.) types.
"2D" character arrays are supported (actually, 1D array of strings) if
you use
    char   *str[N];

Best regards,
Zoltán Böszörményi

--
Bible has answers for everything. Proof:
"But let your communication be, Yea, yea; Nay, nay: for whatsoever is more
than these cometh of evil." (Matthew 5:37) - basics of digital technology.
"May your kingdom come" - superficial description of plate tectonics

----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/