From b58aa0c484235c130f796c20764eaef716af2878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ko=C5=88a=C5=99=C3=ADk?= Date: Thu, 5 Feb 2026 10:41:56 +0100 Subject: [PATCH 1/2] Fix sqlite3_gpkg_auto_init error handling --- geodiff/src/drivers/sqliteutils.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/geodiff/src/drivers/sqliteutils.cpp b/geodiff/src/drivers/sqliteutils.cpp index 6d5b0205..ebfe9c0d 100644 --- a/geodiff/src/drivers/sqliteutils.cpp +++ b/geodiff/src/drivers/sqliteutils.cpp @@ -234,10 +234,11 @@ void register_gpkg_extensions( std::shared_ptr db ) throwSqliteError( db->get(), "Failed to enable SQLite extensions loading" ); } - rc = sqlite3_gpkg_auto_init( db->get(), NULL, NULL ); - if ( rc ) + const char *errmsg = ""; + rc = sqlite3_gpkg_auto_init( db->get(), &errmsg, NULL ); + if ( rc != SQLITE_OK ) { - throwSqliteError( db->get(), "Failed to initialize GPKG extension" ); + throw GeoDiffException( "Failed to initialize GPKG extension [" + std::to_string( rc ) + "]: " + std::string( errmsg ) ); } } From 88c6923afb83050f99b52baadf8d952499cd92af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Ko=C5=88a=C5=99=C3=ADk?= Date: Thu, 5 Feb 2026 10:42:20 +0100 Subject: [PATCH 2/2] Fix CI-built geodiff CLI --- .github/workflows/win_cli_build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/win_cli_build.yml b/.github/workflows/win_cli_build.yml index 0dd1fc0c..2c38af15 100644 --- a/.github/workflows/win_cli_build.yml +++ b/.github/workflows/win_cli_build.yml @@ -20,7 +20,7 @@ jobs: # Github runners have two installations of vcpkg, one from Visual # Studio and one extra. Use the second one explicitly to avoid mixups. $env:VCPKG_ROOT = "C:\vcpkg" - & $env:VCPKG_ROOT/vcpkg install --triplet x64-windows-static sqlite3 + & $env:VCPKG_ROOT/vcpkg install --triplet x64-windows-static sqlite3[rtree] & $env:VCPKG_ROOT/vcpkg install --triplet x64-windows-static libpq[openssl] cd $env:GITHUB_WORKSPACE/geodiff mkdir build