Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjwnW-0002iR-Ph for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Nov 2013 19:53:50 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VjwnW-0001uK-91 for pgsql-bugs@arkaria.postgresql.org; Fri, 22 Nov 2013 19:53:50 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjwnV-0001tJ-46 for pgsql-bugs@postgresql.org; Fri, 22 Nov 2013 19:53:49 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VjwnS-0000X6-Pw for pgsql-bugs@postgresql.org; Fri, 22 Nov 2013 19:53:48 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id rAMJrjmI024236; Fri, 22 Nov 2013 14:53:45 -0500 From: Tom Lane To: rajasekhar5c1@gmail.com cc: pgsql-bugs@postgresql.org Subject: Re: BUG #8613: getting null when null is concatenated with string In-reply-to: References: Comments: In-reply-to rajasekhar5c1@gmail.com message dated "Fri, 22 Nov 2013 07:28:28 +0000" Date: Fri, 22 Nov 2013 14:53:45 -0500 Message-ID: <24235.1385150025@sss.pgh.pa.us> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org rajasekhar5c1@gmail.com writes: > when i fire below query on one of our servers > select null || 'query' ,'|' > the result is null nothing is displayed That's the expected result. > when i fire the same query on another server which has same version of > postgresql server i am getting result as > query Interesting. I think this is what would be expected in Oracle, which thinks that null and empty string are the same thing. > postgres version on both servers are > 1) EnterpriseDB 9.2.1.3 on i686-pc-linux-gnu, compiled by gcc (GCC) 4.1.2 > 20080704 (Red Hat 4.1.2-52), 32-bit 2) EnterpriseDB 9.2.1.3 on > x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.1.2 20080704 (Red Hat > 4.1.2-52), 64-bit Well, I think you'd need to take that up with EnterpriseDB. I don't know anything about what they do to Postgres' null handling, but it wouldn't surprise me to hear that they've kluged it up to more nearly match Oracle's non-standards-compliant behavior. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs