Re: Concatenating String Literals in pgsql

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Concatenating String Literals in pgsql
Дата
Msg-id 2212.1060611968@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Concatenating String Literals in pgsql  (Raymond <support@bigriverinfotech.com>)
Список pgsql-general
Raymond <support@bigriverinfotech.com> writes:
> The compiler complains about the concat operator in the following code
> fragment:

> RAISE EXCEPTION
>     ''SELECT DISTINCT "t1"."usesysid" '' ||
>         ''INTO userID '' ||

RAISE EXCEPTION doesn't support expressions in its arguments, IIRC.
The format has to be a simple string literal, and anything to be plugged
into it has to be a variable reference.

So, do the concatenation beforehand.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: 7.4Beta1 "failed to create socket: Address family not supported by protocol"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: public key functions for postgresql ?