Re: BUG #1350: Backslash ecape charcter violates ISO/ANSI spec

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: BUG #1350: Backslash ecape charcter violates ISO/ANSI spec
Дата
Msg-id 200412170325.iBH3PS924938@candle.pha.pa.us
обсуждение исходный текст
Ответ на BUG #1350: Backslash ecape charcter violates ISO/ANSI spec and is hazardous  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Ответы Re: BUG #1350: Backslash ecape charcter violates ISO/ANSI  (Ken Johanson <ken@kensystem.com>)
Список pgsql-bugs
PostgreSQL Bugs List wrote:
> Description:        Backslash ecape charcter violates ISO/ANSI spec and is
> hazardous
>
> Details:
>
> I can't find any option to run the server in a more standard mode for string
> escaping rules, of only needing to escape single quotes. The current
> backslash-escape behavior is a huge problem for SQL statement portability, a
> spec violation, and blindsides developers coming from Oracle, Sybase, MS,
> etc.

We have a TODO item:

    * Allow backslash handling in quoted strings to be disabled for
    portability

      The use of C-style backslashes (.e.g. \n, \r) in quoted strings is not
      SQL-spec compliant, so allow such handling to be disabled.

Unfortunately that's all we have.  :-)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1350: Backslash ecape charcter violates ISO/ANSI spec and is hazardous
Следующее
От: Zsolt Pfiszter
Дата:
Сообщение: posgresql 8.0 RC1 missing schemas