agora inbox for pgsql-ru-general@postgresql.org
help / color / mirror / Atom feedFrom: Nick Gazaloff <nick@sbin.org>
Cc: pgsql-ru-general <pgsql-ru-general@postgresql.org>
Subject: Re: настройк
Date: Tue, 06 Dec 2005 00:58:47 +0300
Message-ID: <4394B817.6040000@sbin.org> (raw)
In-Reply-To: <514320993.20051205165607@pochtamt.ru>
References: <514320993.20051205165607@pochtamt.ru>
Serik wrote:
> Добрый день !
>
> Можно настроить PostgreSQL, чтобы запрос
>
> select 'test' || NULL || '' as ret;
>
> возвращал не пустую строку, а то, что есть ?
Имманентным свойством NULL является "распространяемость" через
выражения, то есть, любые выражения с NULL возвращают NULL. Если вы
хотите иначе -- то это будет уже не NULL, а что-то другое. Пустая
строка, например. Попробуйте сначала заменять NULL на пустую строку.
Вообще хорошо бы получше сформулировать задачу.
--
С уважением,
технический директор ООО "ЦСА"
Николай Газалов
http://www.sbin.org
sip:nick@sbin.org
+7 8793 365584
(GPG Key ID: 4396B2D0)
Message-ID: <4394B817.6040000@sbin.org>
Permalink: ../4394B817.6040000@sbin.org/
Also on: postgresql.org/message-id/4394B817.6040000@sbin.org
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-ru-general@postgresql.org
Cc: nick@sbin.org
Subject: Re: =?windows-1251?Q?=ED=E0=F1=F2=F0=EE=E9=EA?=
In-Reply-To: <4394B817.6040000@sbin.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox