Skip to content
Permalink
Browse files

[virtual layer] Escape column names in query

  • Loading branch information
Hugo Mercier
Hugo Mercier committed Jun 28, 2016
1 parent 871b6ae commit c6fb7b3b0e5055928e872c1cca38b3c6035a597d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/virtual/qgsvirtuallayerqueryparser.cpp
@@ -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 += ", ";
}

0 comments on commit c6fb7b3

Please sign in to comment.
You can’t perform that action at this time.