aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
authorAdam Frisby2008-05-01 16:23:53 +0000
committerAdam Frisby2008-05-01 16:23:53 +0000
commit01f31fd933bbaec246d2fef5756b7d83be7980e0 (patch)
tree45ce7727e83238bf492924bea3ff5f0b6c82acbc /OpenSim/Data
parent* In ur code. Making it static. (diff)
downloadopensim-SC_OLD-01f31fd933bbaec246d2fef5756b7d83be7980e0.zip
opensim-SC_OLD-01f31fd933bbaec246d2fef5756b7d83be7980e0.tar.gz
opensim-SC_OLD-01f31fd933bbaec246d2fef5756b7d83be7980e0.tar.bz2
opensim-SC_OLD-01f31fd933bbaec246d2fef5756b7d83be7980e0.tar.xz
* Breaking all the code, breaking all the code..!
* Made a bunch more members static, removed some dead code, general cleaning.
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/SQLite/SQLiteRegionData.cs8
-rw-r--r--OpenSim/Data/SQLite/SQLiteUserData.cs2
2 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs
index 9a610a4..9908735 100644
--- a/OpenSim/Data/SQLite/SQLiteRegionData.cs
+++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs
@@ -1352,7 +1352,7 @@ namespace OpenSim.Data.SQLite
1352 * 1352 *
1353 **********************************************************************/ 1353 **********************************************************************/
1354 1354
1355 private SqliteCommand createInsertCommand(string table, DataTable dt) 1355 private static SqliteCommand createInsertCommand(string table, DataTable dt)
1356 { 1356 {
1357 /** 1357 /**
1358 * This is subtle enough to deserve some commentary. 1358 * This is subtle enough to deserve some commentary.
@@ -1387,7 +1387,7 @@ namespace OpenSim.Data.SQLite
1387 return cmd; 1387 return cmd;
1388 } 1388 }
1389 1389
1390 private SqliteCommand createUpdateCommand(string table, string pk, DataTable dt) 1390 private static SqliteCommand createUpdateCommand(string table, string pk, DataTable dt)
1391 { 1391 {
1392 string sql = "update " + table + " set "; 1392 string sql = "update " + table + " set ";
1393 string subsql = String.Empty; 1393 string subsql = String.Empty;
@@ -1415,7 +1415,7 @@ namespace OpenSim.Data.SQLite
1415 } 1415 }
1416 1416
1417 1417
1418 private string defineTable(DataTable dt) 1418 private static string defineTable(DataTable dt)
1419 { 1419 {
1420 string sql = "create table " + dt.TableName + "("; 1420 string sql = "create table " + dt.TableName + "(";
1421 string subsql = String.Empty; 1421 string subsql = String.Empty;
@@ -1457,7 +1457,7 @@ namespace OpenSim.Data.SQLite
1457 /// for us. 1457 /// for us.
1458 ///</summary> 1458 ///</summary>
1459 ///<returns>a built sqlite parameter</returns> 1459 ///<returns>a built sqlite parameter</returns>
1460 private SqliteParameter createSqliteParameter(string name, Type type) 1460 private static SqliteParameter createSqliteParameter(string name, Type type)
1461 { 1461 {
1462 SqliteParameter param = new SqliteParameter(); 1462 SqliteParameter param = new SqliteParameter();
1463 param.ParameterName = ":" + name; 1463 param.ParameterName = ":" + name;
diff --git a/OpenSim/Data/SQLite/SQLiteUserData.cs b/OpenSim/Data/SQLite/SQLiteUserData.cs
index 7f017b7..6891373 100644
--- a/OpenSim/Data/SQLite/SQLiteUserData.cs
+++ b/OpenSim/Data/SQLite/SQLiteUserData.cs
@@ -784,7 +784,7 @@ namespace OpenSim.Data.SQLite
784 conn.Close(); 784 conn.Close();
785 } 785 }
786 786
787 private bool TestTables(SqliteConnection conn) 787 private static bool TestTables(SqliteConnection conn)
788 { 788 {
789 SqliteCommand cmd = new SqliteCommand(userSelect, conn); 789 SqliteCommand cmd = new SqliteCommand(userSelect, conn);
790 SqliteCommand fcmd = new SqliteCommand(userFriendsSelect, conn); 790 SqliteCommand fcmd = new SqliteCommand(userFriendsSelect, conn);