Re: [9.3 bug fix] ECPG does not escape backslashes - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: [9.3 bug fix] ECPG does not escape backslashes
Date
Msg-id 20130706201518.GA24774@feivel.credativ.lan
Whole thread Raw
In response to Re: [9.3 bug fix] ECPG does not escape backslashes  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
On Fri, Jul 05, 2013 at 08:08:06AM -0400, Andrew Dunstan wrote:
> This looks incomplete. Surely just escaping backslashes alone is not
> enough. I suspect at least the " char and any chars below 0x20
> should be quoted also.

The " char I just added, however, my tests did bring up any problem with chars
below 0x20. If anybody sees another character breaking ecpg, please tell me and
I'll fix it.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at gmail dot com
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



pgsql-hackers by date:

Previous
From: Szymon Guz
Date:
Subject: Re: [COMMITTERS] pgsql: PL/Python: Convert numeric to Decimal
Next
From: Dimitri Fontaine
Date:
Subject: Re: Review: extension template