Re: Returning setof records

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Scott Schulthess" <scott(at)topozone(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Returning setof records
Date: 2006-01-20 16:39:12
Message-ID: 18727.1137775152@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Scott Schulthess" <scott(at)topozone(dot)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

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Scott Schulthess 2006-01-20 16:43:24 Re: Returning setof records
Previous Message Scott Schulthess 2006-01-20 16:12:18 Returning setof records