aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
diff options
context:
space:
mode:
authorSean Dague2008-09-24 20:43:32 +0000
committerSean Dague2008-09-24 20:43:32 +0000
commit639267133562c5d71a988fd222c93275887bcb8f (patch)
treeff7c5b1471eee391d8cc05687c7148a5dcdb8d3d /OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
parentremove a bunch of out of date inline ALTER table commands that would only (diff)
downloadopensim-SC-639267133562c5d71a988fd222c93275887bcb8f.zip
opensim-SC-639267133562c5d71a988fd222c93275887bcb8f.tar.gz
opensim-SC-639267133562c5d71a988fd222c93275887bcb8f.tar.bz2
opensim-SC-639267133562c5d71a988fd222c93275887bcb8f.tar.xz
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.
Diffstat (limited to 'OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs')
-rw-r--r--OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs b/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
index c299452..5e6b7f9 100644
--- a/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
+++ b/OpenSim/Data/MySQL/Tests/MySQLInventoryTest.cs
@@ -50,6 +50,10 @@ namespace OpenSim.Data.MySQL.Tests
50 public void Init() 50 public void Init()
51 { 51 {
52 SuperInit(); 52 SuperInit();
53 // If we manage to connect to the database with the user
54 // and password above it is our test database, and run
55 // these tests. If anything goes wrong, ignore these
56 // tests.
53 try 57 try
54 { 58 {
55 database = new MySQLManager(connect); 59 database = new MySQLManager(connect);
@@ -66,6 +70,10 @@ namespace OpenSim.Data.MySQL.Tests
66 [TestFixtureTearDown] 70 [TestFixtureTearDown]
67 public void Cleanup() 71 public void Cleanup()
68 { 72 {
73 if (db != null)
74 {
75 db.Dispose();
76 }
69 if (database != null) 77 if (database != null)
70 { 78 {
71 database.ExecuteSql("drop table migrations"); 79 database.ExecuteSql("drop table migrations");