Re: help

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: "Matt A(dot)" <survivedsushi(at)yahoo(dot)com>
Cc: Postgresql General <pgsql-general(at)postgresql(dot)org>
Subject: Re: help
Date: 2005-08-25 22:06:09
Message-ID: 20050825220609.GF17679@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Please reply to the list also in the future, I'm going to sleep now.
Anyway, it still works:

kleptog=# create temp table x (a text);
CREATE TABLE
kleptog=# insert into x values (nullif('',''));
INSERT 114760 1
kleptog=# insert into x values (nullif('1',''));
INSERT 114761 1
kleptog=# select a,a is null as isnull from x;
a | isnull
---+--------
| t
1 | f
(2 rows)

Please show us the error you got.

Have a nice day,

On Thu, Aug 25, 2005 at 02:57:29PM -0700, Matt A. wrote:
> hi. I am speaking of INSERT not SELECT
>
> --- Martijn van Oosterhout <kleptog(at)svana(dot)org> wrote:
>
> > Very odd, what are you trying?
> >
> > kleptog=# select nullif('','') is null;
> > ?column?
> > ----------
> > t
> > (1 row)
> >
> > kleptog=# select nullif('1','') is null;
> > ?column?
> > ----------
> > f
> > (1 row)
> >
> > Works for me.
> >
> > Have a nice day,
> >

--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

In response to

  • Re: help at 2005-08-25 21:52:44 from Martijn van Oosterhout

Responses

  • Re: help at 2005-08-25 23:10:27 from Matt A.

Browse pgsql-general by date

  From Date Subject
Next Message Jim C. Nasby 2005-08-25 22:55:56 Re: POSS. FEATURE REQ: "Dynamic" Views
Previous Message CSN 2005-08-25 22:03:30 POSS. FEATURE REQ: "Dynamic" Views