mantis 9219: update SQLite to System.Data.Sqlite 2.0.2 (native 3.50.4.5). Must run prebuild. This needs testing :(

This commit is contained in:
UbitUmarov
2025-11-10 17:35:22 +00:00
parent dc4513ac33
commit 9612ea2491
23 changed files with 348 additions and 400 deletions

View File

@@ -31,11 +31,7 @@ using System.Collections.Generic;
using System.Data;
using OpenMetaverse;
using OpenSim.Framework;
#if CSharpSqlite
using Community.CsharpSqlite.Sqlite;
#else
using Mono.Data.Sqlite;
#endif
using System.Data.SQLite;
namespace OpenSim.Data.SQLite
{
@@ -48,7 +44,7 @@ namespace OpenSim.Data.SQLite
protected SQLiteFramework(string connectionString)
{
DllmapConfigHelper.RegisterAssembly(typeof(SqliteConnection).Assembly);
DllmapConfigHelper.RegisterAssembly(typeof(SQLiteConnection).Assembly);
}
//////////////////////////////////////////////////////////////
@@ -56,7 +52,7 @@ namespace OpenSim.Data.SQLite
// All non queries are funneled through one connection
// to increase performance a little
//
protected int ExecuteNonQuery(SqliteCommand cmd, SqliteConnection connection)
protected int ExecuteNonQuery(SQLiteCommand cmd, SQLiteConnection connection)
{
lock (connection)
{
@@ -67,12 +63,12 @@ namespace OpenSim.Data.SQLite
}
}
protected IDataReader ExecuteReader(SqliteCommand cmd, SqliteConnection connection)
protected IDataReader ExecuteReader(SQLiteCommand cmd, SQLiteConnection connection)
{
lock (connection)
{
//SqliteConnection newConnection =
// (SqliteConnection)((ICloneable)connection).Clone();
//SQLiteConnection newConnection =
// (SQLiteConnection)((ICloneable)connection).Clone();
//newConnection.Open();
//cmd.Connection = newConnection;