Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4E64B2E2F6D for ; Tue, 25 Dec 2007 23:49:41 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 90401-02 for ; Tue, 25 Dec 2007 23:49:37 -0400 (AST) Received: from smtp120.sbc.mail.sp1.yahoo.com (smtp120.sbc.mail.sp1.yahoo.com [69.147.64.93]) by postgresql.org (Postfix) with SMTP id A42B02E2F60 for ; Tue, 25 Dec 2007 23:49:37 -0400 (AST) Received: (qmail 51114 invoked from network); 26 Dec 2007 03:49:35 -0000 Received: from unknown (HELO ANDYXP) (drlaz@sbcglobal.net@71.135.36.46 with plain) by smtp120.sbc.mail.sp1.yahoo.com with SMTP; 26 Dec 2007 03:49:35 -0000 X-YMail-OSG: Bma7mqcVM1krbpcIhUb94NzwyiDLc8Fg3v1tMS5kTJ.YJlqq4xzBL_RN8KhKmr1BksS7vSCDF3qSwdUQJrwzmpn09_8oHfATTxnYOoPJPmPLrbsTgA-- Date: Tue, 25 Dec 2007 19:49:24 -0800 From: Andrew Lazarus X-Mailer: The Bat! (v3.99.24) Home Reply-To: Andrew Lazarus X-Priority: 3 (Normal) Message-ID: <536006520.20071225194924@attglobal.net> To: abyss CC: pgsql-jdbc@postgresql.org Subject: Re: concat returns null In-Reply-To: <8f60d3bd0712180316r52dd88b9j4e092ee7b1a03d06@mail.gmail.com> References: <8f60d3bd0712180316r52dd88b9j4e092ee7b1a03d06@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.73 tagged_above=0 required=5 tests=AWL=-0.729, BAYES_50=0.001, HTML_MESSAGE=0.001, MIME_HTML_ONLY=1.457 X-Spam-Level: X-Archive-Number: 200712/177 X-Sequence-Number: 18032

 Hello abyss,

Check out the built-in function COALESCE which will do your special-casi= ng for you


Tuesday, December 18, 2007, 3:16:31 AM, you wrote:


>

I don't know if it's bug or feature but =

select 'test' || null as result

returns null, 

so i need to case second parameter not to concat if = it is null...






-- 

Best regards,

 Andrew           &nbs= p;                mailto:drlaz@attglobal.net=