From: tivvpgsqljdbc@gtech-ua.com
To: abyss <kurjak@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: concat returns null
Date: Tue, 18 Dec 2007 13:28:03 +0200
Message-ID: <4767AEC3.1080908@gtech-ua.com> (raw)
In-Reply-To: <8f60d3bd0712180316r52dd88b9j4e092ee7b1a03d06@mail.gmail.com>
References: <8f60d3bd0712180316r52dd88b9j4e092ee7b1a03d06@mail.gmail.com>
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.
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tivvpgsqljdbc@gtech-ua.com, kurjak@gmail.com
Subject: Re: concat returns null
In-Reply-To: <4767AEC3.1080908@gtech-ua.com>
References: <8f60d3bd0712180316r52dd88b9j4e092ee7b1a03d06@mail.gmail.com> <4767AEC3.1080908@gtech-ua.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