multi line text data/query ?bug?

Поиск
Список
Период
Сортировка
От Sim Zacks
Тема multi line text data/query ?bug?
Дата
Msg-id d1ofuc$1vuq$1@news.hub.org
обсуждение исходный текст
Ответы Re: multi line text data/query ?bug?  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-general
While I was testing an issue in python I discovered a general
*nix/windows/mac issue with newlines.
The same query will give different results depending on what client executes
it.

create table test1(f1 text);

insert into test1 values('this is a long string.
it will have new lines in it.
I want to see if those new lines go away.
so ignore. the ugliness')

If the insert was done on a Windows machine there will be a CRLF as the
EOLN, if done on Unix it will have LF and if done on Mac it will have CR.

So if the insert was done on windows, the following query will only work
from a windows client :
select * from test1 where f1='this is a long string.
it will have new lines in it.
I want to see if those new lines go away.
so ignore. the ugliness'

If that insert was done on a *NIX then the query will only work from that
client



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

Предыдущее
От: Neil Conway
Дата:
Сообщение: Re: Clearing locks
Следующее
От: "Qingqing Zhou"
Дата:
Сообщение: Re: Measuring Query Performance