Skip to content

Commit

Permalink
[virtual layer] Escape column names in query
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Mercier committed Jun 28, 2016
1 parent 871b6ae commit c6fb7b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/virtual/qgsvirtuallayerqueryparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ namespace QgsVirtualLayerQueryParser
QString qs = "SELECT ";
for ( int i = 0; i < undefinedColumns.size(); i++ )
{
qs += columns[undefinedColumns[i]];
qs += "\"" + columns[undefinedColumns[i]] + "\"";
if ( i != undefinedColumns.size() - 1 )
qs += ", ";
}
Expand Down

0 comments on commit c6fb7b3

Please sign in to comment.