Fixed two warnings

This commit is contained in:
Rick Falkvinge
2018-12-08 16:21:32 +01:00
parent d77faba7ea
commit 15bed6fd3e
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ namespace Swarmops.Database
int DefaultCountryId, int OrganizationId)
{
throw new NotImplementedException("Needs to use SPs per field");
/*
using (DbConnection connection = GetMySqlDbConnection())
{
connection.Open();
@@ -109,7 +109,7 @@ namespace Swarmops.Database
AddParameterWithName (command, "p_DefaultCountryId", DefaultCountryId);
AddParameterWithName (command, "p_OrganizationId", OrganizationId);
command.ExecuteNonQuery();
}
}*/
}
+1 -1
View File
@@ -494,7 +494,7 @@ namespace Swarmops.Database
") AND (Name LIKE @searchPattern OR Email LIKE @searchPattern)",
connection);
AddParameterWithName(command, "searchPattern", pattern);
AddParameterWithName(command, "searchPattern", sqlPattern);
using (DbDataReader reader = command.ExecuteReader())
{