Re: Separating raise notice lines

Поиск
Список
Период
Сортировка
От Alban Hertroys
Тема Re: Separating raise notice lines
Дата
Msg-id 1E035E19-A992-4A0C-ACE1-558FBCB4F85A@solfertje.student.utwente.nl
обсуждение исходный текст
Ответ на Separating raise notice lines  (Radcon Entec <radconentec@yahoo.com>)
Список pgsql-general
On Jun 23, 2009, at 10:27 PM, Radcon Entec wrote:

>  raise notice 'User name is % %', userRecord.name, chr(10);

> I am trying to insert a carriage return character (chr(10)) in the
> user name notice so that any subsequent notices will appear on
> separate lines.  However, when I use a query to update a field that
> will fire this trigger, the Messages tab contains this:
>
> NOTICE:  User name is capsNOTICE:  History record should be added


As you're apparently using a Windows client you probably need to print
\r\n (characters 13 and 10) instead of just \n to make your client
understand the newline. The fault is in the client though, so maybe
you don't want to handle that on the server-side.

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.


!DSPAM:737,4a41e08a759153794312201!



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

Предыдущее
От: Dimitri Fontaine
Дата:
Сообщение: Re: Replication
Следующее
От: "Albe Laurenz"
Дата:
Сообщение: Re: [BUGS] Integrity check