]> granicus.if.org Git - postgis/commitdiff
Rollback experimental shp2pgsql escaping change that accidently got included in the...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 13 Jul 2007 05:48:32 +0000 (05:48 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Fri, 13 Jul 2007 05:48:32 +0000 (05:48 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2657 b70326c6-7e19-0410-871a-916f4a2858ee

loader/shp2pgsql.c

index 7be8e4850869c3139f144a79e8a1de6f193a89a2..1c5859ab093c55695c085f043c258c9c88729a54 100644 (file)
@@ -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';