aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Data')
-rw-r--r--OpenSim/Data/MySQL/MySQLUserProfilesData.cs5
-rw-r--r--OpenSim/Data/SQLite/SQLiteSimulationData.cs12
2 files changed, 10 insertions, 7 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs
index 295e131..c389ae4 100644
--- a/OpenSim/Data/MySQL/MySQLUserProfilesData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserProfilesData.cs
@@ -524,8 +524,7 @@ namespace OpenSim.Data.MySQL
524 query += "SELECT `notes` FROM usernotes WHERE "; 524 query += "SELECT `notes` FROM usernotes WHERE ";
525 query += "useruuid = ?Id AND "; 525 query += "useruuid = ?Id AND ";
526 query += "targetuuid = ?TargetId"; 526 query += "targetuuid = ?TargetId";
527 OSDArray data = new OSDArray(); 527
528
529 try 528 try
530 { 529 {
531 using (MySqlConnection dbcon = new MySqlConnection(ConnectionString)) 530 using (MySqlConnection dbcon = new MySqlConnection(ConnectionString))
@@ -904,8 +903,6 @@ namespace OpenSim.Data.MySQL
904 query += "usersettings WHERE "; 903 query += "usersettings WHERE ";
905 query += "useruuid = ?Id"; 904 query += "useruuid = ?Id";
906 905
907 OSDArray data = new OSDArray();
908
909 try 906 try
910 { 907 {
911 using (MySqlConnection dbcon = new MySqlConnection(ConnectionString)) 908 using (MySqlConnection dbcon = new MySqlConnection(ConnectionString))
diff --git a/OpenSim/Data/SQLite/SQLiteSimulationData.cs b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
index d7b3bbe..cd20c4e 100644
--- a/OpenSim/Data/SQLite/SQLiteSimulationData.cs
+++ b/OpenSim/Data/SQLite/SQLiteSimulationData.cs
@@ -1354,7 +1354,7 @@ namespace OpenSim.Data.SQLite
1354 createCol(land, "Name", typeof(String)); 1354 createCol(land, "Name", typeof(String));
1355 createCol(land, "Desc", typeof(String)); 1355 createCol(land, "Desc", typeof(String));
1356 createCol(land, "OwnerUUID", typeof(String)); 1356 createCol(land, "OwnerUUID", typeof(String));
1357 createCol(land, "IsGroupOwned", typeof(Boolean)); 1357 createCol(land, "IsGroupOwned", typeof(String));
1358 createCol(land, "Area", typeof(Int32)); 1358 createCol(land, "Area", typeof(Int32));
1359 createCol(land, "AuctionID", typeof(Int32)); //Unemplemented 1359 createCol(land, "AuctionID", typeof(Int32)); //Unemplemented
1360 createCol(land, "Category", typeof(Int32)); //Enum OpenMetaverse.Parcel.ParcelCategory 1360 createCol(land, "Category", typeof(Int32)); //Enum OpenMetaverse.Parcel.ParcelCategory
@@ -1387,6 +1387,9 @@ namespace OpenSim.Data.SQLite
1387 createCol(land, "MediaLoop", typeof(Boolean)); 1387 createCol(land, "MediaLoop", typeof(Boolean));
1388 createCol(land, "ObscureMedia", typeof(Boolean)); 1388 createCol(land, "ObscureMedia", typeof(Boolean));
1389 createCol(land, "ObscureMusic", typeof(Boolean)); 1389 createCol(land, "ObscureMusic", typeof(Boolean));
1390 createCol(land, "SeeAVs", typeof(Boolean));
1391 createCol(land, "AnyAVSounds", typeof(Boolean));
1392 createCol(land, "GroupAVSounds", typeof(Boolean));
1390 1393
1391 land.PrimaryKey = new DataColumn[] { land.Columns["UUID"] }; 1394 land.PrimaryKey = new DataColumn[] { land.Columns["UUID"] };
1392 1395
@@ -1829,7 +1832,7 @@ namespace OpenSim.Data.SQLite
1829 newData.Name = (String)row["Name"]; 1832 newData.Name = (String)row["Name"];
1830 newData.Description = (String)row["Desc"]; 1833 newData.Description = (String)row["Desc"];
1831 newData.OwnerID = (UUID)(String)row["OwnerUUID"]; 1834 newData.OwnerID = (UUID)(String)row["OwnerUUID"];
1832 newData.IsGroupOwned = (Boolean)row["IsGroupOwned"]; 1835 newData.IsGroupOwned = Convert.ToBoolean(row["IsGroupOwned"]);
1833 newData.Area = Convert.ToInt32(row["Area"]); 1836 newData.Area = Convert.ToInt32(row["Area"]);
1834 newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented 1837 newData.AuctionID = Convert.ToUInt32(row["AuctionID"]); //Unemplemented
1835 newData.Category = (ParcelCategory)Convert.ToInt32(row["Category"]); 1838 newData.Category = (ParcelCategory)Convert.ToInt32(row["Category"]);
@@ -2245,7 +2248,7 @@ namespace OpenSim.Data.SQLite
2245 row["Name"] = land.Name; 2248 row["Name"] = land.Name;
2246 row["Desc"] = land.Description; 2249 row["Desc"] = land.Description;
2247 row["OwnerUUID"] = land.OwnerID.ToString(); 2250 row["OwnerUUID"] = land.OwnerID.ToString();
2248 row["IsGroupOwned"] = land.IsGroupOwned; 2251 row["IsGroupOwned"] = land.IsGroupOwned.ToString();
2249 row["Area"] = land.Area; 2252 row["Area"] = land.Area;
2250 row["AuctionID"] = land.AuctionID; //Unemplemented 2253 row["AuctionID"] = land.AuctionID; //Unemplemented
2251 row["Category"] = land.Category; //Enum OpenMetaverse.Parcel.ParcelCategory 2254 row["Category"] = land.Category; //Enum OpenMetaverse.Parcel.ParcelCategory
@@ -2939,6 +2942,9 @@ namespace OpenSim.Data.SQLite
2939 { 2942 {
2940 return DbType.Binary; 2943 return DbType.Binary;
2941 } 2944 }
2945 else if (type == typeof(Boolean)) {
2946 return DbType.Boolean;
2947 }
2942 else 2948 else
2943 { 2949 {
2944 return DbType.String; 2950 return DbType.String;