We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 477b05d commit e6d220dCopy full SHA for e6d220d
src/providers/gdal/qgsgdalproviderbase.cpp
@@ -261,7 +261,16 @@ QgsRectangle QgsGdalProviderBase::extent( GDALDatasetH gdalDataset )const
261
262
GDALDatasetH QgsGdalProviderBase::gdalOpen( const char *pszFilename, GDALAccess eAccess )
263
{
264
+ bool modify_OGR_GPKG_FOREIGN_KEY_CHECK = !CPLGetConfigOption( "OGR_GPKG_FOREIGN_KEY_CHECK", nullptr );
265
+ if ( modify_OGR_GPKG_FOREIGN_KEY_CHECK )
266
+ {
267
+ CPLSetThreadLocalConfigOption( "OGR_GPKG_FOREIGN_KEY_CHECK", "NO" );
268
+ }
269
GDALDatasetH hDS = GDALOpen( pszFilename, eAccess );
270
271
272
+ CPLSetThreadLocalConfigOption( "OGR_GPKG_FOREIGN_KEY_CHECK", nullptr );
273
274
return hDS;
275
}
276
0 commit comments