Skip to content

Commit 52b724e

Browse files
authored
msPostGISBuildSQLWhere: quote the geo column name
1 parent 9d7b942 commit 52b724e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mappostgis.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2003,7 +2003,7 @@ char *msPostGISBuildSQLWhere(layerObj *layer, rectObj *rect, long *uid, rectObj
20032003
char *strBox = 0;
20042004
char *strSRID = 0;
20052005
size_t strBoxLength = 0;
2006-
static const char *strRectTemplate = "%s && %s";
2006+
static const char *strRectTemplate = "\"%s\" && %s";
20072007

20082008
/* We see to set the SRID on the box, but to what SRID? */
20092009
strSRID = msPostGISBuildSQLSRID(layer);

0 commit comments

Comments
 (0)