Re: Returning setof records - Mailing list pgsql-admin

From Tom Lane
Subject Re: Returning setof records
Date
Msg-id 18727.1137775152@sss.pgh.pa.us
Whole thread Raw
In response to Returning setof records  ("Scott Schulthess" <scott@topozone.com>)
List 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 by date:

Previous
From: "Scott Schulthess"
Date:
Subject: Returning setof records
Next
From: "Scott Schulthess"
Date:
Subject: Re: Returning setof records