Skip to content

Commit e975bde

Browse files
committed
enclose field names in double quotes to prevent possible conflicts with
reserved words
1 parent dca08b8 commit e975bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gui/qgssearchquerybuilder.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void QgsSearchQueryBuilder::setSearchString( QString searchString )
314314

315315
void QgsSearchQueryBuilder::on_lstFields_doubleClicked( const QModelIndex &index )
316316
{
317-
txtSQL->insertPlainText( mModelFields->data( index ).toString() );
317+
txtSQL->insertPlainText( "\"" + mModelFields->data( index ).toString() + "\"" );
318318
}
319319

320320
void QgsSearchQueryBuilder::on_lstValues_doubleClicked( const QModelIndex &index )

0 commit comments

Comments
 (0)