pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: sridhar bamandlapally <sridhar.bn1@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Subject: Re: [PERFORM] <empty string> Vs NULL
Date: Mon, 9 Feb 2015 21:50:42 -0700
Message-ID: <7903E12E-1791-45C6-80F4-D7907D3B1B08@elevated-dev.com> (raw)
In-Reply-To: <CAGuFTBXaMmPuY8H1pFGvJWA=tUiTM0g92=_a8eHA=ACQmjEikA@mail.gmail.com>
References: <CAGuFTBWoL76nZ-DJqjX4aTyR0i5zJT+1KOFpe0-VTFB3y3DPtw@mail.gmail.com>
	<CAFj8pRCg0qbpwGBwG2fqzDo=JRkWROVRpoOuPsNUtOTdtOGUqA@mail.gmail.com>
	<B6F6FD62F2624C4C9916AC0175D56D8828B5B4AA@jenmbs01.ad.intershop.net>
	<B6F6FD62F2624C4C9916AC0175D56D8828B5B4D1@jenmbs01.ad.intershop.net>
	<CAGuFTBXaMmPuY8H1pFGvJWA=tUiTM0g92=_a8eHA=ACQmjEikA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Feb 9, 2015, at 8:53 PM, sridhar bamandlapally <sridhar.bn1@gmail.com> wrote:
> 
> the issue is, while DML its empty string and while SELECT its comparing with NULL

The issue is, empty string is NOT the same as null, and expecting select for null to match empty strings is a bug, which you need to fix.

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice






-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (13+ messages)  latest in thread

Message-ID: <7903E12E-1791-45C6-80F4-D7907D3B1B08@elevated-dev.com>
Permalink:  ../7903E12E-1791-45C6-80F4-D7907D3B1B08@elevated-dev.com/
Also on:    postgresql.org/message-id/7903E12E-1791-45C6-80F4-D7907D3B1B08@elevated-dev.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: scott_ribe@elevated-dev.com, sridhar.bn1@gmail.com, pgsql-admin@postgresql.org
  Subject: Re: [PERFORM] <empty string> Vs NULL
  In-Reply-To: <7903E12E-1791-45C6-80F4-D7907D3B1B08@elevated-dev.com>

* 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