Re: Carriage Returns Disappearing

Поиск
Список
Период
Сортировка
От Volkan YAZICI
Тема Re: Carriage Returns Disappearing
Дата
Msg-id 7104a73705052800457990a15d@mail.gmail.com
обсуждение исходный текст
Ответ на Carriage Returns Disappearing  (<operationsengineer1@yahoo.com>)
Список pgsql-novice
Hi,

On 5/26/05, operationsengineer1@yahoo.com <operationsengineer1@yahoo.com> wrote:
> my users enter a note.  i would like to keep carriage
> returns intact.  however, when i display the data, the
> two carriage returns are lost and replaced with two
> spaces.
>
> i use adodb's qstr() fumction to handle my excaping
> upon entry.

There seems to be a problem with ADOdb's escaping PostgreSQL literals
routine, because it's commented out and ADOdb is using its default
qstr() routine. (I should check it in an suitable time.) Therefore, I
advice you to use pg_escape_string().

Regards.

P.S. I've traced to qstr() code but couldn't find the
adodb_str_replace() function in ADOdb source code used by qstr().
Thus, I cannot give a correct answer about where qstr() dumps your
problem.

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

Предыдущее
От: John DeSoi
Дата:
Сообщение: Re: ERROR: relation "default_cols" does not exist
Следующее
От: "David Sadler"
Дата:
Сообщение: Re: ERROR: relation "default_cols" does not exist