pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Martijn van Oosterhout <kleptog@svana.org>
To: Matt A. <survivedsushi@yahoo.com>
Cc: Postgresql General <pgsql-general@postgresql.org>
Subject: Re: help
Date: Fri, 26 Aug 2005 00:06:09 +0200
Message-ID: <20050825220609.GF17679@svana.org> (raw)
In-Reply-To: <20050825215730.85611.qmail@web35203.mail.mud.yahoo.com>
References: <20050825215244.GD17679@svana.org>
	<20050825215730.85611.qmail@web35203.mail.mud.yahoo.com>

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@svana.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@svana.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.

view thread (69+ messages)  latest in thread

Message-ID: <20050825220609.GF17679@svana.org>
Permalink:  ../20050825220609.GF17679@svana.org/
Also on:    postgresql.org/message-id/20050825220609.GF17679@svana.org

 · 

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-general@postgresql.org
  Cc: kleptog@svana.org, survivedsushi@yahoo.com
  Subject: Re: help
  In-Reply-To: <20050825220609.GF17679@svana.org>
  References: <20050825215244.GD17679@svana.org> <20050825215730.85611.qmail@web35203.mail.mud.yahoo.com> <20050825220609.GF17679@svana.org>

* 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