ECPG: No multidimensional array support for simple data types

Started by mike stantonabout 16 years ago2 messagesgeneral
Jump to latest
#1mike stanton
mstanton@acsa.cl

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.

#2Boszormenyi Zoltan
zb@cybertec.at
In reply to: mike stanton (#1)
Re: ECPG: No multidimensional array support for simple data types

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/