Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] IS OF

From: Joe Conway <mail(at)joeconway(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>,Gavin Sherry <swm(at)linuxworld(dot)com(dot)au>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>,"Patches (PostgreSQL)" <pgsql-patches(at)postgresql(dot)org>
Subject: Re: [HACKERS] IS OF
Date: 2003-08-08 21:49:27
Message-ID: 3F341AE7.1080609@joeconway.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-patches
Joe Conway wrote:
> Peter Eisentraut wrote:
>> I suggest I should not be documented until it's fixed.
>>
>>> Doc patch attached for IS OF. Please apply.
>>
>> That is not the right place for it.  IS OF is an operator, not an SQL
>> command.
> 
> OK. If the attached patch is acceptable/applied, I'll fix and resend the 
> doc patch.
> 

Hmmm, looks like I was a bit quick on the draw:

regression=# select f1 is null, f2 is null, f3 is null from foo;
  ?column? | ?column? | ?column?
----------+----------+----------
  f        | t        | f
  t        | f        | f
  f        | f        | t
(3 rows)

regression=# select f1 is of (int), f2 is of (text), f3 is of (float8) 
from foo;
  ?column? | ?column? | ?column?
----------+----------+----------
  t        | t        | t
  t        | t        | t
  t        | t        | t
(3 rows)


It worked correctly for constants, but not fields from a table :(

Back to the drawing board (suggestions welcomed).

Joe


In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2003-08-08 22:03:17
Subject: Re: [HACKERS] IS OF
Previous:From: Joe ConwayDate: 2003-08-08 21:37:59
Subject: Re: [HACKERS] IS OF

pgsql-patches by date

Next:From: Tom LaneDate: 2003-08-08 22:03:17
Subject: Re: [HACKERS] IS OF
Previous:From: Joe ConwayDate: 2003-08-08 21:37:59
Subject: Re: [HACKERS] IS OF

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group