We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6a1c141 commit c09f5beCopy full SHA for c09f5be
src/core/qgsvectorlayerjoinbuffer.cpp
@@ -419,7 +419,9 @@ QgsFeature QgsVectorLayerJoinBuffer::joinedFeatureOf( const QgsVectorLayerJoinIn
419
if ( info.joinLayer() )
420
{
421
const QVariant targetValue = feature.attribute( info.targetFieldName() );
422
- const QString filter = QString( "\"%1\" = %2" ).arg( info.joinFieldName(), targetValue.toString() );
+ QString fieldRef = QgsExpression::quotedColumnRef( info.joinFieldName() );
423
+ QString quotedVal = QgsExpression::quotedValue( targetValue.toString() );
424
+ const QString filter = QString( "%1 = %2" ).arg( fieldRef, quotedVal );
425
426
QgsFeatureRequest request;
427
request.setFilterExpression( filter );
0 commit comments