From: Leo Fink <leo.fink@gmx.net>
To: pgsql-sql@postgresql.org
Subject: Array of Arrays of int
Date: Mon, 2 May 2005 05:50:37 +0200
Message-ID: <178c0af58f0514c54835d2e0723c525a@gmx.net> (raw)
Why does
select array(select array[1,2]);
give me an error: "could not find array type for data type integer[]"?
Is there a type-cast missing, or is this generally impossible? I was
expecting something like
{{1,2}}
In my real-world application, the subquery returns more than one pair
of ints, but I think it all boils down to this simpler example. I am
using version 7.4 of PostgreSQL.
Thanks a lot,
Leo
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: leo.fink@gmx.net
Subject: Re: Array of Arrays of int
In-Reply-To: <178c0af58f0514c54835d2e0723c525a@gmx.net>
* 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