[mapserver-commits] r9617 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Tue Dec 15 14:34:36 EST 2009
Author: aboudreault
Date: 2009-12-15 14:34:36 -0500 (Tue, 15 Dec 2009)
New Revision: 9617
Modified:
trunk/mapserver/maporaclespatial.c
Log:
fixed small comma issue in sql query
Modified: trunk/mapserver/maporaclespatial.c
===================================================================
--- trunk/mapserver/maporaclespatial.c 2009-12-15 18:48:55 UTC (rev 9616)
+++ trunk/mapserver/maporaclespatial.c 2009-12-15 19:34:36 UTC (rev 9617)
@@ -1988,7 +1988,7 @@
if (existunique)
sprintf( query_str, "SELECT");
else
- sprintf( query_str, "SELECT %s", unique );
+ sprintf( query_str, "SELECT %s,", unique );
/* allocate enough space for items */
if (layer->numitems >= 0)
@@ -2013,7 +2013,7 @@
/* define SQL query */
for( i=0; i < layer->numitems; ++i )
- sprintf( query_str + strlen(query_str), ", %s", layer->items[i] );
+ sprintf( query_str + strlen(query_str), "%s %s", (i!=0 ? ",":""),layer->items[i] );
sprintf( query_str + strlen(query_str), ", %s FROM %s", geom_column_name, table_name );
More information about the mapserver-commits
mailing list