Re: SELECT Field1 || Field2 FROM Table

Поиск
Список
Период
Сортировка
От Jean-Michel POURE
Тема Re: SELECT Field1 || Field2 FROM Table
Дата
Msg-id 4.2.2.20010614112047.00aa5810@smtp
обсуждение исходный текст
Ответ на SELECT Field1 || Field2 FROM Table  (Jean-Michel POURE <jm.poure@freesurf.fr>)
Ответы Re: Re: SELECT Field1 || Field2 FROM Table  (Alex Pilosov <alex@pilosoft.com>)
Список pgsql-hackers
Hello Robert (Bob?),

Thank you for your answer. I will surely make a wide use the COALESCE 
function in my scripts.
I also noticed the same behaviour in PL/pgSQL:

CREATE FUNCTION "xxxxxxxxxxxxxx" (text, text)
RETURNS text
AS 'BEGIN

RETURN $1 || ' ' || $2;
END;
'
LANGUAGE 'plpgsql'

Correct me if I am wrong:

It seems that a NULL value is not passed to the function ...
... or is it that a NULL value is not taken into account by PL/pgSQL.

Thank you all for the COALESCE trick.

Greetings from Jean-Michel POURE, Paris, France
pgAdmin development team



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hiroshi Inoue
Дата:
Сообщение: Re: Re: [SQL] behavior of ' = NULL' vs. MySQL vs. Standards
Следующее
От: Giles Lean
Дата:
Сообщение: Re: Re: [PATCHES] Australian timezone configure option