[postgis-commits] svn - r2662 - trunk/loader
postgis-commits at postgis.refractions.net
postgis-commits at postgis.refractions.net
Mon Jul 16 11:06:33 PDT 2007
Author: mleslie
Date: 2007-07-16 11:06:32 -0700 (Mon, 16 Jul 2007)
New Revision: 2662
Modified:
trunk/loader/shp2pgsql.c
Log:
Upgraded the escaping of quotes from the deprecated backslashing to the doubling of quotes.
Modified: trunk/loader/shp2pgsql.c
===================================================================
--- trunk/loader/shp2pgsql.c 2007-07-15 22:32:44 UTC (rev 2661)
+++ trunk/loader/shp2pgsql.c 2007-07-16 18:06:32 UTC (rev 2662)
@@ -251,7 +251,8 @@
optr=result;
ptr=str;
while (*ptr) {
- if ( *ptr == '\'' || *ptr == '\\' ) *optr++='\\';
+ if ( *ptr == '\\' ) *optr++='\\';
+ if ( *ptr == '\'') *optr++='\'';
*optr++=*ptr++;
}
*optr='\0';
More information about the postgis-commits
mailing list