From: Mark Cave-Ayland Date: Fri, 13 Jul 2007 05:48:32 +0000 (+0000) Subject: Rollback experimental shp2pgsql escaping change that accidently got included in the... X-Git-Tag: 1.3.0~19 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ec2bcb7231ae5ee409b210cf9332aa4a4877db24;p=postgis Rollback experimental shp2pgsql escaping change that accidently got included in the last commit :( git-svn-id: http://svn.osgeo.org/postgis/trunk@2657 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/loader/shp2pgsql.c b/loader/shp2pgsql.c index 7be8e4850..1c5859ab0 100644 --- a/loader/shp2pgsql.c +++ b/loader/shp2pgsql.c @@ -251,8 +251,7 @@ protect_quotes_string(char *str) optr=result; ptr=str; while (*ptr) { - if ( *ptr == '\'' ) *optr++='\''; - else if ( *ptr == '\\' ) *optr++='\\'; + if ( *ptr == '\'' || *ptr == '\\' ) *optr++='\\'; *optr++=*ptr++; } *optr='\0';