Fix GPKG project storage with UTF8 names on windows

This commit is contained in:
Alessandro Pasotti 2020-06-29 13:30:11 +02:00
parent fb9df9f6de
commit 69bcbeee70

View File

@ -341,7 +341,7 @@ QString QgsGeoPackageProjectStorage::_executeSql( const QString &uri, const QStr
char *errmsg = nullptr;
( void )sqlite3_exec(
db.get(), /* An open database */
sql.toLocal8Bit(), /* SQL to be evaluated */
sql.toUtf8(), /* SQL to be evaluated */
nullptr, /* Callback function */
nullptr, /* 1st argument to callback */
&errmsg /* Error msg written here */