Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 8EF7B2E31CB for ; Tue, 18 Dec 2007 07:28:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 50088-02 for ; Tue, 18 Dec 2007 07:28:11 -0400 (AST) Received: from skuns.kiev.zoral.com.ua (ll-226.216.82.212.sovam.net.ua [212.82.216.226]) by postgresql.org (Postfix) with ESMTP id 870C02E3196 for ; Tue, 18 Dec 2007 07:28:11 -0400 (AST) Received: from [10.1.1.57] (tivv.kiev.zoral.com.ua [10.1.1.57]) (authenticated bits=0) by skuns.kiev.zoral.com.ua (8.14.1/8.14.1) with ESMTP id lBIBRqt1019813 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 18 Dec 2007 13:27:52 +0200 (EET) (envelope-from tivvpgsqljdbc@gtech-ua.com) Message-ID: <4767AEC3.1080908@gtech-ua.com> Date: Tue, 18 Dec 2007 13:28:03 +0200 From: tivvpgsqljdbc@gtech-ua.com User-Agent: Thunderbird 2.0.0.9 (X11/20071114) MIME-Version: 1.0 To: abyss CC: pgsql-jdbc@postgresql.org Subject: Re: concat returns null References: <8f60d3bd0712180316r52dd88b9j4e092ee7b1a03d06@mail.gmail.com> In-Reply-To: <8f60d3bd0712180316r52dd88b9j4e092ee7b1a03d06@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.697 tagged_above=0 required=5 tests=BAYES_00=-2.599, FROM_LOCAL_NOVOWEL=3.196, RDNS_DYNAMIC=0.1 X-Spam-Level: X-Archive-Number: 200712/133 X-Sequence-Number: 17988 abyss 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... It's and SQL feature that neither specific to JDBC nor PostgreSQL. Most SQL functions return null if any of parameters is null.