pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Alexey Klyukin <alexk@commandprompt.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: the '::' cast doesn't work in the FROM clause
Date: Mon, 29 Aug 2011 09:34:21 -0500
Message-ID: <4E5B5D1D02000025000407FF@gw.wicourts.gov> (raw)
In-Reply-To: <4E5B5BFD02000025000407F6@gw.wicourts.gov>
References: <4E5B449602000025000407D9@gw.wicourts.gov>
	<7B691F0D-A0E3-4195-98E7-F0C5833A2B74@commandprompt.com>
	<4E5B55C102000025000407F1@gw.wicourts.gov>
	<1804685E-C378-49E1-B12C-96078B221102@commandprompt.com>
	<4E5B5BFD02000025000407F6@gw.wicourts.gov>

"Kevin Grittner" <Kevin.Grittner@wicourts.gov> wrote:
 
> test=# select val from (select 'a' = 'a') as val;
>  val
> -----
>  (t)
> (1 row)
 
Also note the difference between a record and a scalar here.  I
forgot to write it to return val as a scalar, which seems to be what
you're after.  It should have been:
 
test=# select val from (select 'a' = 'a') as x(val);
 val
-----
 t
(1 row)
 
-Kevin



view thread (13+ messages)  latest in thread

Message-ID: <4E5B5D1D02000025000407FF@gw.wicourts.gov>
Permalink:  ../4E5B5D1D02000025000407FF@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4E5B5D1D02000025000407FF@gw.wicourts.gov

 · 

reply

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-bugs@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, alexk@commandprompt.com
  Subject: Re: the '::' cast doesn't work in the FROM clause
  In-Reply-To: <4E5B5D1D02000025000407FF@gw.wicourts.gov>
  References: <4E5B449602000025000407D9@gw.wicourts.gov> <7B691F0D-A0E3-4195-98E7-F0C5833A2B74@commandprompt.com> <4E5B55C102000025000407F1@gw.wicourts.gov> <1804685E-C378-49E1-B12C-96078B221102@commandprompt.com> <4E5B5BFD02000025000407F6@gw.wicourts.gov> <4E5B5D1D02000025000407FF@gw.wicourts.gov>

* 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