aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/MySQLUserData.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/MySQL/MySQLUserData.cs14
1 files changed, 8 insertions, 6 deletions
diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs
index 745583f..bcfd7c3 100644
--- a/OpenSim/Data/MySQL/MySQLUserData.cs
+++ b/OpenSim/Data/MySQL/MySQLUserData.cs
@@ -95,7 +95,9 @@ namespace OpenSim.Data.MySQL
95 settingUsername + ";Password=" + settingPassword + ";Pooling=" + settingPooling + ";"; 95 settingUsername + ";Password=" + settingPassword + ";Pooling=" + settingPooling + ";";
96 96
97 database = new MySQLManager(m_connectString); 97 database = new MySQLManager(m_connectString);
98 } else { 98 }
99 else
100 {
99 m_connectString = connect; 101 m_connectString = connect;
100 m_agentsTableName = "agents"; 102 m_agentsTableName = "agents";
101 m_usersTableName = "users"; 103 m_usersTableName = "users";
@@ -190,7 +192,7 @@ namespace OpenSim.Data.MySQL
190 { 192 {
191 database.ExecuteResourceSql("CreateAvatarAppearance.sql"); 193 database.ExecuteResourceSql("CreateAvatarAppearance.sql");
192 return; 194 return;
193 } 195 }
194 else if (oldVersion.Contains("Rev.1")) 196 else if (oldVersion.Contains("Rev.1"))
195 { 197 {
196 database.ExecuteSql("drop table avatarappearance"); 198 database.ExecuteSql("drop table avatarappearance");
@@ -674,15 +676,15 @@ namespace OpenSim.Data.MySQL
674 { 676 {
675 Dictionary<string, string> param = new Dictionary<string, string>(); 677 Dictionary<string, string> param = new Dictionary<string, string>();
676 param["?owner"] = user.ToString(); 678 param["?owner"] = user.ToString();
677 679
678 IDbCommand result = database.Query("SELECT * FROM " + m_appearanceTableName + " WHERE owner = ?owner", param); 680 IDbCommand result = database.Query("SELECT * FROM " + m_appearanceTableName + " WHERE owner = ?owner", param);
679 IDataReader reader = result.ExecuteReader(); 681 IDataReader reader = result.ExecuteReader();
680 682
681 AvatarAppearance appearance = database.readAppearanceRow(reader); 683 AvatarAppearance appearance = database.readAppearanceRow(reader);
682 684
683 reader.Close(); 685 reader.Close();
684 result.Dispose(); 686 result.Dispose();
685 687
686 return appearance; 688 return appearance;
687 } 689 }
688 } 690 }