let the asset tests run on MySQL. Interesting difference here, the

sqlite driver can handle .Data = Null, the mysql driver can not.  We
should decide which is the right behavior and adjust code for it.
This commit is contained in:
Sean Dague
2008-09-24 20:43:32 +00:00
parent 70d6cb8570
commit 6392671335
4 changed files with 102 additions and 4 deletions

View File

@@ -50,6 +50,10 @@ namespace OpenSim.Data.MySQL.Tests
public void Init()
{
SuperInit();
// If we manage to connect to the database with the user
// and password above it is our test database, and run
// these tests. If anything goes wrong, ignore these
// tests.
try
{
database = new MySQLManager(connect);
@@ -66,6 +70,10 @@ namespace OpenSim.Data.MySQL.Tests
[TestFixtureTearDown]
public void Cleanup()
{
if (db != null)
{
db.Dispose();
}
if (database != null)
{
database.ExecuteSql("drop table migrations");