Skip to content

Commit c6fb7b3

Browse files
author
Hugo Mercier
committedJun 28, 2016
[virtual layer] Escape column names in query
1 parent 871b6ae commit c6fb7b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/virtual/qgsvirtuallayerqueryparser.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ namespace QgsVirtualLayerQueryParser
201201
QString qs = "SELECT ";
202202
for ( int i = 0; i < undefinedColumns.size(); i++ )
203203
{
204-
qs += columns[undefinedColumns[i]];
204+
qs += "\"" + columns[undefinedColumns[i]] + "\"";
205205
if ( i != undefinedColumns.size() - 1 )
206206
qs += ", ";
207207
}

0 commit comments

Comments
 (0)