From: Tom Lane <tgl@sss.pgh.pa.us>
To: Scott Schulthess <scott@topozone.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Returning setof records
Date: Fri, 20 Jan 2006 11:39:12 -0500
Message-ID: <18727.1137775152@sss.pgh.pa.us> (raw)
In-Reply-To: <4BF377919225F449BB097CB76FFE9BC83DD7EC@ptolemy.topozone.com>
References: <4BF377919225F449BB097CB76FFE9BC83DD7EC@ptolemy.topozone.com>
"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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, scott@topozone.com
Subject: Re: Returning setof records
In-Reply-To: <18727.1137775152@sss.pgh.pa.us>
References: <4BF377919225F449BB097CB76FFE9BC83DD7EC@ptolemy.topozone.com> <18727.1137775152@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox