aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MSSQL/MSSQLRegionData.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MSSQL/MSSQLRegionData.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenSim/Data/MSSQL/MSSQLRegionData.cs b/OpenSim/Data/MSSQL/MSSQLRegionData.cs
index 7af3e7e..e26b03d 100644
--- a/OpenSim/Data/MSSQL/MSSQLRegionData.cs
+++ b/OpenSim/Data/MSSQL/MSSQLRegionData.cs
@@ -644,7 +644,7 @@ VALUES
644 RegionSettings regionSettings; 644 RegionSettings regionSettings;
645 using (AutoClosingSqlCommand cmd = _Database.Query(sql)) 645 using (AutoClosingSqlCommand cmd = _Database.Query(sql))
646 { 646 {
647 cmd.Parameters.AddWithValue("@regionUUID", regionUUID.ToString()); 647 cmd.Parameters.Add(_Database.CreateParameter("@regionUUID", regionUUID.ToString()));
648 using(SqlDataReader reader = cmd.ExecuteReader()) 648 using(SqlDataReader reader = cmd.ExecuteReader())
649 { 649 {
650 if (reader.Read()) 650 if (reader.Read())
@@ -678,6 +678,7 @@ VALUES
678 string regionUUID = null; 678 string regionUUID = null;
679 using (AutoClosingSqlCommand cmd = _Database.Query("SELECT regionUUID FROM regionsettings WHERE regionUUID = @regionUUID")) 679 using (AutoClosingSqlCommand cmd = _Database.Query("SELECT regionUUID FROM regionsettings WHERE regionUUID = @regionUUID"))
680 { 680 {
681 cmd.Parameters.Add(_Database.CreateParameter("@regionUUID", regionSettings.RegionUUID));
681 regionUUID = cmd.ExecuteScalar().ToString(); 682 regionUUID = cmd.ExecuteScalar().ToString();
682 } 683 }
683 684