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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Ken Johanson <ken(at)kensystem(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1350: Backslash ecape charcter violates ISO/ANSI spec
Date: 2004-12-17 03:25:28
Message-ID: 200412170325.iBH3PS924938@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Zsolt Pfiszter 2004-12-17 13:17:15 posgresql 8.0 RC1 missing schemas
Previous Message PostgreSQL Bugs List 2004-12-17 02:39:52 BUG #1350: Backslash ecape charcter violates ISO/ANSI spec and is hazardous