Various minor changes in the data tests

This commit is contained in:
AlexRa
2010-05-23 11:31:19 +03:00
parent 9976cb93ce
commit 89b7c64b6f
5 changed files with 18 additions and 16 deletions

View File

@@ -183,9 +183,10 @@ namespace OpenSim.Data.Tests
lst += ", " + s;
}
string sCond = stores.Length > 1 ? ("in (" + lst + ")") : ("=" + lst);
try
{
ExecuteSql("DELETE FROM `migrations` where name in (" + lst + ");");
ExecuteSql("DELETE FROM migrations where name " + sCond);
}
catch
{