Skip to content

Commit

Permalink
Allow using double quoted aliases for Oracle column aliases
Browse files Browse the repository at this point in the history
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 Jun 28, 2017
1 parent 89810ed commit 608a118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maporaclespatial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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*/
Expand Down

0 comments on commit 608a118

Please sign in to comment.