mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-24 00:06:24 -04:00
Update src/providers/ogr/qgsogrprovider.cpp
Co-Authored-By: elpaso <elpaso@itopen.it>
This commit is contained in:
parent
adba08c8fa
commit
7e008b25df
@ -3628,7 +3628,7 @@ QSet<QVariant> QgsOgrProvider::uniqueValues( int index, int limit ) const
|
|||||||
if ( ( mGDALDriverName == QLatin1String( "GPKG" ) || mGDALDriverName == QLatin1String( "SQLite" ) )
|
if ( ( mGDALDriverName == QLatin1String( "GPKG" ) || mGDALDriverName == QLatin1String( "SQLite" ) )
|
||||||
&& mFirstFieldIsFid && index == 0 )
|
&& mFirstFieldIsFid && index == 0 )
|
||||||
{
|
{
|
||||||
sql += ", " + quotedIdentifier( textEncoding()->fromUnicode( fld.name() ) ) + " AS fid2";
|
sql += QStringLiteral( ", " ) + quotedIdentifier( textEncoding()->fromUnicode( fld.name() ) ) + QStringLiteral( " AS fid2" );
|
||||||
}
|
}
|
||||||
|
|
||||||
sql += " FROM " + quotedIdentifier( mOgrLayer->name() );
|
sql += " FROM " + quotedIdentifier( mOgrLayer->name() );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user