mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-22 00:06:57 -04:00
Update src/providers/ogr/qgsogrprovider.cpp
Co-Authored-By: elpaso <elpaso@itopen.it>
This commit is contained in:
parent
f454827397
commit
adba08c8fa
@ -3622,7 +3622,7 @@ QSet<QVariant> 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" ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user