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

Поиск
Список
Период
Сортировка
От Boszormenyi Zoltan
Тема Re: ECPG: No multidimensional array support for simple data types
Дата
Msg-id 4B828ACA.4070509@cybertec.at
обсуждение исходный текст
Ответ на ECPG: No multidimensional array support for simple data types  ("mike stanton" <mstanton@acsa.cl>)
Список pgsql-general
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/


В списке pgsql-general по дате отправления:

Предыдущее
От: "mike stanton"
Дата:
Сообщение: ECPG: No multidimensional array support for simple data types
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: Questions regarding SET option.