Re: BUG #1350: Backslash ecape charcter violates ISO/ANSI spec - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #1350: Backslash ecape charcter violates ISO/ANSI spec
Date
Msg-id 200412170325.iBH3PS924938@candle.pha.pa.us
Whole thread Raw
In response to BUG #1350: Backslash ecape charcter violates ISO/ANSI spec and is hazardous  ("PostgreSQL Bugs List" <pgsql-bugs@postgresql.org>)
Responses Re: BUG #1350: Backslash ecape charcter violates ISO/ANSI  (Ken Johanson <ken@kensystem.com>)
List 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 by date:

Previous
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1350: Backslash ecape charcter violates ISO/ANSI spec and is hazardous
Next
From: Zsolt Pfiszter
Date:
Subject: posgresql 8.0 RC1 missing schemas