Re: Inconsistent behavior with unnamed columns

From: Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com>
To: Moshe Jacobson <moshe(at)neadwerx(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Inconsistent behavior with unnamed columns
Date: 2013-09-30 21:14:33
Message-ID: 5249E9B9.3060308@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 09/30/2013 01:48 PM, Moshe Jacobson wrote:
> Why does bool get special treatment?
>
> |postgres# select 'abc', 1, false;
> ?column? | ?column? | bool
> ----------+----------+------
> abc | 1 | f
> (1 row)|

Not always:

test=> select 'abc'::text, 1::int, 'f';
text | int4 | ?column?
------+------+----------
abc | 1 | f

>
> Moshe Jacobson
> Nead Werx, Inc. | Manager of Systems Engineering
> 2323 Cumberland Parkway, Suite 201 | Atlanta, GA 30339
> moshe(at)neadwerx(dot)com <mailto:moshe(at)neadwerx(dot)com> | www.neadwerx.com
> <http://www.neadwerx.com/>
>
> “Quality is not an act, it is a habit.” — Aristotle
>

--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Johnston 2013-09-30 21:18:31 Re: Inconsistent behavior with unnamed columns
Previous Message Moshe Jacobson 2013-09-30 20:48:01 Inconsistent behavior with unnamed columns