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

Bruce Momjian <pgman@candle.pha.pa.us>

From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Ken Johanson <ken@kensystem.com>
Cc: pgsql-bugs@postgresql.org
Date: 2004-12-17T03:25:28Z
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@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