[mapserver-commits] r11913 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Tue Jul 12 14:20:06 EDT 2011
Author: dmorissette
Date: 2011-07-12 11:20:06 -0700 (Tue, 12 Jul 2011)
New Revision: 11913
Modified:
trunk/mapserver/mappostgis.c
Log:
Added missing ifdef USE_POSTGIS in msPostGISEscapeSQLParam() (#3903)
Modified: trunk/mapserver/mappostgis.c
===================================================================
--- trunk/mapserver/mappostgis.c 2011-07-12 18:11:35 UTC (rev 11912)
+++ trunk/mapserver/mappostgis.c 2011-07-12 18:20:06 UTC (rev 11913)
@@ -3298,8 +3298,9 @@
return MS_FALSE;
}
-char *msPostGISEscapeSQLParam(layerObj *layer, char *pszString)
+char *msPostGISEscapeSQLParam(layerObj *layer, const char *pszString)
{
+#ifdef USE_POSTGIS
msPostGISLayerInfo *layerinfo = NULL;
int nError;
size_t nSrcLen;
@@ -3323,6 +3324,12 @@
}
}
return pszEscapedStr;
+#else
+ msSetError( MS_MISCERR,
+ "PostGIS support is not available.",
+ "msPostGISEscapeSQLParam()");
+ return NULL;
+#endif
}
More information about the mapserver-commits
mailing list