using System;
using Microsoft.Data.Sqlite;
class Program
{
static int Main()
{
try
{
using var connection = new SqliteConnection("Data Source=:memory:");
connection.Open();
connection.EnableExtensions(true);
connection.LoadExtension("mod_spatialite");
Console.WriteLine("Loaded mod_spatialite successfully");
}
catch (Exception ex)
{
Console.WriteLine(ex.ToString());
return 1;
}
Console.WriteLine("All tests passed successfully");
return 0;
}
}
```
```bash
root ➜ /tmp/sqlite_test $ dotnet run
/tmp/sqlite_test/Program.cs(23,9): warning CS0162: Unreachable code detected [/tmp/sqlite_test/sqlite_test.csproj]
Loaded mod_spatialite successfully
root ➜ /tmp/sqlite_test $ dotnet run
Loaded mod_spatialite successfully
root ➜ /tmp/sqlite_test $ echo $?
139
root ➜ /tmp/sqlite_test $ dotnet run
Loaded mod_spatialite successfully
root ➜ /tmp/sqlite_test $ echo $?
139
root ➜ /tmp/sqlite_test $ uname -a
Linux 58057b12c122 6.14.0-33-generic #33-Ubuntu SMP PREEMPT_DYNAMIC Wed Sep 17 22:57:58 UTC 2025 aarch64 GNU/Linux
```
Last active
October 20, 2025 13:48
-
-
Save JKamsker/4e032e5b35183f274592fcec577846ff to your computer and use it in GitHub Desktop.
Spartiallite bug repro
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment