Skip to content

Commit

Permalink
Merge pull request qgis#56983 from agiudiceandrea/fix-56974-gpkg-meta…
Browse files Browse the repository at this point in the history
…data

[OGR] Fix GeoPackage layer metadata reading (Fix qgis#56974)
  • Loading branch information
rouault authored Mar 31, 2024
2 parents 800acb9 + f3151e6 commit 5b2c0e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/providers/ogr/qgsogrprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ void QgsOgrProvider::loadMetadata()
QgsSqliteUtils::quotedString( QStringLiteral( "http://mrcc.com/qgis.dtd" ) ),
QgsSqliteUtils::quotedString( QStringLiteral( "table" ) ) );

if ( QgsOgrLayerUniquePtr l = mOgrOrigLayer->ExecuteSQL( sql.toLocal8Bit().constData() ) )
if ( QgsOgrLayerUniquePtr l = mOgrOrigLayer->ExecuteSQL( sql.toUtf8().constData() ) )
{
gdal::ogr_feature_unique_ptr f( l->GetNextFeature() );
if ( f )
Expand Down

0 comments on commit 5b2c0e4

Please sign in to comment.