Re: Returning setof records

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Returning setof records
Дата
Msg-id 18727.1137775152@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Returning setof records  ("Scott Schulthess" <scott@topozone.com>)
Список pgsql-admin
"Scott Schulthess" <scott@topozone.com> writes:
> select * from placenamesearch('Cheshire',9,'New Haven','text', 'text')
> as (FeatureName varchar, CountyName varchar, State varchar, featuretype
> varchar, Elevation int4,CellName varchar, PrimaryLatDD float8,
> PrimaryLonDD float8);
...
>   state char(2),

You've got the State output column declared as varchar, but actually
it's char.  PG will often do automatic conversion from one type to the
other, but in this context it's picky...

            regards, tom lane

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

Предыдущее
От: "Scott Schulthess"
Дата:
Сообщение: Returning setof records
Следующее
От: "Scott Schulthess"
Дата:
Сообщение: Re: Returning setof records