From: Rodrigo De León <rdeleonp@gmail.com>
To: pgsql-general@postgresql.org
Subject: ERROR: failed to find conversion function from unknown to integer[]
Date: Thu, 29 Nov 2007 12:57:21 -0500
Message-ID: <a55915760711290957j5684bf3bi346907ef7e40850e@mail.gmail.com> (raw)
t=# select version();
version
--------------------------------------------------------
PostgreSQL 8.3beta3, compiled by Visual C++ build 1400
(1 row)
t=# -- foo is of type unknown
t=# select '{1,2,3}' as foo;
foo
---------
{1,2,3}
(1 row)
t=# -- OK. foo is of type int[]
t=# select ('{1,2,3}')::int[] as foo;
foo
---------
{1,2,3}
(1 row)
t=# -- OK. foo is of type unknown
t=# select (('{1,2,3}'::text)::unknown) as foo;
foo
---------
{1,2,3}
(1 row)
t=# -- Barfs. Why?
t=# select (('{1,2,3}'::text)::unknown)::int[] as foo;
ERROR: failed to find conversion function from unknown to integer[]
Thanks for your time.
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-general@postgresql.org
Cc: rdeleonp@gmail.com
Subject: Re: ERROR: failed to find conversion function from unknown to integer[]
In-Reply-To: <a55915760711290957j5684bf3bi346907ef7e40850e@mail.gmail.com>
References: <a55915760711290957j5684bf3bi346907ef7e40850e@mail.gmail.com>
* 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