Permalink
Browse files

Allow using double quoted aliases for Oracle column aliases

Adding double quotes to the columns of the mapserver generated outer
query safely allows using double quoted column aliases in the data
statement
  • Loading branch information...
micking committed Mar 18, 2016
1 parent 89810ed commit 608a118d407223fa33b20c1ff7a431596c2e2e46
Showing with 1 addition and 1 deletion.
  1. +1 −1 maporaclespatial.c
View
@@ -2019,7 +2019,7 @@ int msOracleSpatialLayerWhichShapes( layerObj *layer, rectObj rect, int isQuery)
/* define SQL query */
for( i=0; i < layer->numitems; ++i ) {
snprintf( query_str + strlen(query_str), sizeof(query_str)-strlen(query_str), "%s, ", layer->items[i] );
snprintf( query_str + strlen(query_str), sizeof(query_str)-strlen(query_str), "\"%s\", ", layer->items[i] );
}
/*we add the uniqueid if it was not part of the current item list*/

0 comments on commit 608a118

Please sign in to comment.