[Bug 323006] [DB] Various PostgreSQL test failures
If restarting, do not drop all tables (fixes durable locking tests)
diff --git a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java
index ce24c02..35a9486 100644
--- a/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java
+++ b/plugins/org.eclipse.emf.cdo.tests.db/src/org/eclipse/emf/cdo/tests/db/PostgresqlConfig.java
@@ -84,8 +84,10 @@
     {

       OM.LOG.warn(ex.getMessage());

     }

-

-    dropDatabase();

+    if (!isRestarting())

+    {

+      dropDatabase();

+    }

 

     return dataSource;

   }