ERROR: cannot subscript type text because it is not an array

Поиск
Список
Период
Сортировка
От lxnf98mm@comcast.net
Тема ERROR: cannot subscript type text because it is not an array
Дата
Msg-id alpine.LRH.2.00.1108310820490.21634@rray.drdc.mstc.ms.gov
обсуждение исходный текст
Список pgsql-sql
I have table with field l type lseg
 Column |  Type   | Modifiers
--------+---------+----------- cnt    | integer | used   | boolean | l      | lseg    | c      | text    |

select l from t where used = false group by l[0];
ERROR:  cannot subscript type text because it is not an array

select l from gcode where used = false group by l[0][0],l[0][1];
ERROR:  cannot subscript type text because it is not an array


Using PostgreSQL 8.3.11
How can I work around this

Richard


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

Предыдущее
От: Emi Lu
Дата:
Сообщение: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: where col1 not ilike ('str1%', 'str2%'... 'strN%') support?