Update src/providers/ogr/qgsogrprovider.cpp

Co-Authored-By: elpaso <elpaso@itopen.it>
This commit is contained in:
Matthias Kuhn 2019-02-19 15:36:39 +01:00 committed by GitHub
parent adba08c8fa
commit 7e008b25df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3628,7 +3628,7 @@ QSet<QVariant> QgsOgrProvider::uniqueValues( int index, int limit ) const
if ( ( mGDALDriverName == QLatin1String( "GPKG" ) || mGDALDriverName == QLatin1String( "SQLite" ) )
&& 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() );