Fixed the query helper functions

This commit is contained in:
high 2011-08-01 19:33:15 -04:00
parent 5cb8e019bf
commit 6f26cc0dc5
3 changed files with 59 additions and 18 deletions

View file

@ -193,7 +193,6 @@ namespace TShockAPI.DB
returndata[1] = reader.Get<string>("UserGroup");
return returndata;
}
reader.Close();
}
}
catch (Exception ex)
@ -295,7 +294,7 @@ namespace TShockAPI.DB
{
try
{
IDataReader result;
QueryResult result;
if (string.IsNullOrEmpty(user.Address))
{
result = database.QueryReader("SELECT * FROM Users WHERE Username=@0", user.Name);