aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/SQLite
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-02-21 02:52:20 +0000
committerJustin Clark-Casey (justincc)2012-02-21 02:52:20 +0000
commit68a4ef5ef62aef3d5e1ec5c20b03b3b4fa51743b (patch)
treec524c268408a41df92ddf5f5bf68732103f0cfad /OpenSim/Data/SQLite
parentFix bug where NPCs would establish child agents on other neighbour regions th... (diff)
downloadopensim-SC_OLD-68a4ef5ef62aef3d5e1ec5c20b03b3b4fa51743b.zip
opensim-SC_OLD-68a4ef5ef62aef3d5e1ec5c20b03b3b4fa51743b.tar.gz
opensim-SC_OLD-68a4ef5ef62aef3d5e1ec5c20b03b3b4fa51743b.tar.bz2
opensim-SC_OLD-68a4ef5ef62aef3d5e1ec5c20b03b3b4fa51743b.tar.xz
Add 64 bit Windows sqlite3.dll and use this if running a 64-bit windows process.
Diffstat (limited to 'OpenSim/Data/SQLite')
-rw-r--r--OpenSim/Data/SQLite/SQLiteAssetData.cs3
-rw-r--r--OpenSim/Data/SQLite/SQLiteAuthenticationData.cs3
-rw-r--r--OpenSim/Data/SQLite/SQLiteEstateData.cs3
-rw-r--r--OpenSim/Data/SQLite/SQLiteFramework.cs2
-rw-r--r--OpenSim/Data/SQLite/SQLiteInventoryStore.cs3
-rw-r--r--OpenSim/Data/SQLite/SQLiteSimulationData.cs3
-rw-r--r--OpenSim/Data/SQLite/SQLiteXInventoryData.cs3
7 files changed, 20 insertions, 0 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteAssetData.cs b/OpenSim/Data/SQLite/SQLiteAssetData.cs
index bb23fc1..d0e24c3 100644
--- a/OpenSim/Data/SQLite/SQLiteAssetData.cs
+++ b/OpenSim/Data/SQLite/SQLiteAssetData.cs
@@ -81,6 +81,9 @@ namespace OpenSim.Data.SQLite
81 /// <param name="dbconnect">connect string</param> 81 /// <param name="dbconnect">connect string</param>
82 override public void Initialise(string dbconnect) 82 override public void Initialise(string dbconnect)
83 { 83 {
84 if (Util.IsWindows())
85 Util.LoadArchSpecificWindowsDll("sqlite3.dll");
86
84 if (dbconnect == string.Empty) 87 if (dbconnect == string.Empty)
85 { 88 {
86 dbconnect = "URI=file:Asset.db,version=3"; 89 dbconnect = "URI=file:Asset.db,version=3";
diff --git a/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs b/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs
index f51aa28..5120453 100644
--- a/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteAuthenticationData.cs
@@ -65,6 +65,9 @@ namespace OpenSim.Data.SQLite
65 65
66 if (!m_initialized) 66 if (!m_initialized)
67 { 67 {
68 if (Util.IsWindows())
69 Util.LoadArchSpecificWindowsDll("sqlite3.dll");
70
68 m_Connection = new SqliteConnection(connectionString); 71 m_Connection = new SqliteConnection(connectionString);
69 m_Connection.Open(); 72 m_Connection.Open();
70 73
diff --git a/OpenSim/Data/SQLite/SQLiteEstateData.cs b/OpenSim/Data/SQLite/SQLiteEstateData.cs
index 8db9262..c042ba2 100644
--- a/OpenSim/Data/SQLite/SQLiteEstateData.cs
+++ b/OpenSim/Data/SQLite/SQLiteEstateData.cs
@@ -69,6 +69,9 @@ namespace OpenSim.Data.SQLite
69 69
70 public void Initialise(string connectionString) 70 public void Initialise(string connectionString)
71 { 71 {
72 if (Util.IsWindows())
73 Util.LoadArchSpecificWindowsDll("sqlite3.dll");
74
72 m_connectionString = connectionString; 75 m_connectionString = connectionString;
73 76
74 m_log.Info("[ESTATE DB]: Sqlite - connecting: "+m_connectionString); 77 m_log.Info("[ESTATE DB]: Sqlite - connecting: "+m_connectionString);
diff --git a/OpenSim/Data/SQLite/SQLiteFramework.cs b/OpenSim/Data/SQLite/SQLiteFramework.cs
index 4992bcc..1594717 100644
--- a/OpenSim/Data/SQLite/SQLiteFramework.cs
+++ b/OpenSim/Data/SQLite/SQLiteFramework.cs
@@ -48,6 +48,8 @@ namespace OpenSim.Data.SQLite
48 48
49 protected SQLiteFramework(string connectionString) 49 protected SQLiteFramework(string connectionString)
50 { 50 {
51 if (Util.IsWindows())
52 Util.LoadArchSpecificWindowsDll("sqlite3.dll");
51 } 53 }
52 54
53 ////////////////////////////////////////////////////////////// 55 //////////////////////////////////////////////////////////////
diff --git a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
index 7dc07ec..ccbd154 100644
--- a/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
+++ b/OpenSim/Data/SQLite/SQLiteInventoryStore.cs
@@ -77,6 +77,9 @@ namespace OpenSim.Data.SQLite
77 { 77 {
78 m_Initialized = true; 78 m_Initialized = true;
79 79
80 if (Util.IsWindows())
81 Util.LoadArchSpecificWindowsDll("sqlite3.dll");
82
80 if (dbconnect == string.Empty) 83 if (dbconnect == string.Empty)
81 { 84 {
82 dbconnect = "URI=file:inventoryStore.db,version=3"; 85 dbconnect = "URI=file:inventoryStore.db,version=3";
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
index 6295113..186a586 100644
--- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
@@ -110,6 +110,9 @@ namespace OpenSim.Data.SQLite
110 { 110 {
111 try 111 try
112 { 112 {
113 if (Util.IsWindows())
114 Util.LoadArchSpecificWindowsDll("sqlite3.dll");
115
113 m_connectionString = connectionString; 116 m_connectionString = connectionString;
114 117
115 ds = new DataSet("Region"); 118 ds = new DataSet("Region");
diff --git a/OpenSim/Data/SQLite/SQLiteXInventoryData.cs b/OpenSim/Data/SQLite/SQLiteXInventoryData.cs
index 16f9046..1f36986 100644
--- a/OpenSim/Data/SQLite/SQLiteXInventoryData.cs
+++ b/OpenSim/Data/SQLite/SQLiteXInventoryData.cs
@@ -52,6 +52,9 @@ namespace OpenSim.Data.SQLite
52 52
53 public SQLiteXInventoryData(string conn, string realm) 53 public SQLiteXInventoryData(string conn, string realm)
54 { 54 {
55 if (Util.IsWindows())
56 Util.LoadArchSpecificWindowsDll("sqlite3.dll");
57
55 m_Folders = new SQLiteGenericTableHandler<XInventoryFolder>( 58 m_Folders = new SQLiteGenericTableHandler<XInventoryFolder>(
56 conn, "inventoryfolders", "XInventoryStore"); 59 conn, "inventoryfolders", "XInventoryStore");
57 m_Items = new SqliteItemHandler( 60 m_Items = new SqliteItemHandler(