Re: multi line text data/query ?bug?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: multi line text data/query ?bug?
Дата
Msg-id 26478.1111675619@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: multi line text data/query ?bug?  (Martijn van Oosterhout <kleptog@svana.org>)
Список pgsql-general
Martijn van Oosterhout <kleptog@svana.org> writes:
> IMHO, if you're trying to write portably, don't just hit enter when you
> want an end of line, use \n or \r to indicate *exactly* what you mean.

Indeed.  We are already permissive about line endings in SQL text, so
this discussion really boils down only to whether we should reinterpret
data that's inside a string literal.  There are good style reasons why
you should never put an unescaped newline into a string literal in the
first place ... and if you do, I don't think it's the database's job to
second-guess what you meant.

            regards, tom lane

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

Предыдущее
От: Robert Treat
Дата:
Сообщение: Re: Good Books
Следующее
От: Bill Moran
Дата:
Сообщение: Questions regarding interaction of stored functions and transactions