X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 41B9ED710A for ; Thu, 25 Aug 2005 19:06:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 10655-03 for ; Thu, 25 Aug 2005 22:06:09 +0000 (GMT) Received: from svana.org (svana.org [203.20.62.76]) by svr1.postgresql.org (Postfix) with ESMTP id 60684D6D8D for ; Thu, 25 Aug 2005 19:06:08 -0300 (ADT) Received: from kleptog by svana.org with local (Exim 3.35 #1 (Debian)) id 1E8PrO-0007fJ-00; Fri, 26 Aug 2005 08:06:10 +1000 Date: Fri, 26 Aug 2005 00:06:09 +0200 From: Martijn van Oosterhout To: "Matt A." Cc: Postgresql General Subject: Re: help Message-ID: <20050825220609.GF17679@svana.org> Reply-To: Martijn van Oosterhout Mail-Followup-To: "Matt A." , Postgresql General References: <20050825215244.GD17679@svana.org> <20050825215730.85611.qmail@web35203.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Pgaa2uWPnPrfixyx" Content-Disposition: inline In-Reply-To: <20050825215730.85611.qmail@web35203.mail.mud.yahoo.com> User-Agent: Mutt/1.3.28i X-PGP-Key-ID: Length=1024; ID=0x0DC67BE6 X-PGP-Key-Fingerprint: 295F A899 A81A 156D B522 48A7 6394 F08A 0DC6 7BE6 X-PGP-Key-URL: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.003 required=5 tests=[AWL=0.003] X-Spam-Level: X-Archive-Number: 200508/1307 X-Sequence-Number: 82715 --Pgaa2uWPnPrfixyx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Please reply to the list also in the future, I'm going to sleep now. Anyway, it still works: kleptog=3D# create temp table x (a text); CREATE TABLE kleptog=3D# insert into x values (nullif('',''));=20 INSERT 114760 1 kleptog=3D# insert into x values (nullif('1','')); INSERT 114761 1 kleptog=3D# select a,a is null as isnull from x; a | isnull=20 ---+-------- | 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 >=20 > --- Martijn van Oosterhout wrote: >=20 > > Very odd, what are you trying? > >=20 > > kleptog=3D# select nullif('','') is null; > > ?column?=20 > > ---------- > > t > > (1 row) > >=20 > > kleptog=3D# select nullif('1','') is null; > > ?column?=20 > > ---------- > > f > > (1 row) > >=20 > > Works for me. > >=20 > > Have a nice day, > >=20 --=20 Martijn van Oosterhout 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. --Pgaa2uWPnPrfixyx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQFDDkDQIB7bNG8LQkwRAqXZAJ0aXWcUVGNcpv1TiXoERwwLgbnK9QCfRZpa BNYBm8nai0tJAIApu9dOuhY= =Dz92 -----END PGP SIGNATURE----- --Pgaa2uWPnPrfixyx--