mirror of
https://github.com/opensim/opensim.git
synced 2026-08-15 18:16:18 +08:00
a few more changes on mysql
This commit is contained in:
@@ -77,30 +77,32 @@ namespace OpenSim.Data.MySQL
|
||||
{
|
||||
cmd.Parameters.AddWithValue("?principalID", principalID.ToString());
|
||||
|
||||
IDataReader result = cmd.ExecuteReader();
|
||||
|
||||
if (result.Read())
|
||||
using(IDataReader result = cmd.ExecuteReader())
|
||||
{
|
||||
ret.PrincipalID = principalID;
|
||||
|
||||
CheckColumnNames(result);
|
||||
|
||||
foreach (string s in m_ColumnNames)
|
||||
if(result.Read())
|
||||
{
|
||||
if (s == "UUID")
|
||||
continue;
|
||||
ret.PrincipalID = principalID;
|
||||
|
||||
ret.Data[s] = result[s].ToString();
|
||||
CheckColumnNames(result);
|
||||
|
||||
foreach(string s in m_ColumnNames)
|
||||
{
|
||||
if(s == "UUID")
|
||||
continue;
|
||||
|
||||
ret.Data[s] = result[s].ToString();
|
||||
}
|
||||
|
||||
dbcon.Close();
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
dbcon.Close();
|
||||
return null;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
dbcon.Close();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user