From adba08c8fa8dc95d6e45ed545c067be7bd29e103 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Tue, 19 Feb 2019 15:33:07 +0100 Subject: [PATCH] Update src/providers/ogr/qgsogrprovider.cpp Co-Authored-By: elpaso --- src/providers/ogr/qgsogrprovider.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/ogr/qgsogrprovider.cpp b/src/providers/ogr/qgsogrprovider.cpp index e2508c3c4bb..15b339271ef 100644 --- a/src/providers/ogr/qgsogrprovider.cpp +++ b/src/providers/ogr/qgsogrprovider.cpp @@ -3622,7 +3622,7 @@ QSet QgsOgrProvider::uniqueValues( int index, int limit ) const QByteArray sql = "SELECT DISTINCT " + quotedIdentifier( textEncoding()->fromUnicode( fld.name() ) ); // GPKG/SQLite fid - // For GPKG an SQLITE drivers PK fields are not exposed as real fields, (and OGR_F_GetFID only + // For GPKG and SQLITE drivers PK fields are not exposed as real fields, (and OGR_F_GetFID only // works with GPKG), so we are adding an extra column that will become index 0 // See https://issues.qgis.org/issues/21311 if ( ( mGDALDriverName == QLatin1String( "GPKG" ) || mGDALDriverName == QLatin1String( "SQLite" ) )