Fixed two warnings
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user