List:NDB Connectors« Previous MessageNext Message »
From:Monty Taylor Date:September 18 2007 8:16am
Subject:Rev 158: Removed extraneous if block. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge
View as plain text  
At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmerge

------------------------------------------------------------
revno: 158
revision-id: mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: ndbjmerge
timestamp: Tue 2007-09-18 10:16:15 +0200
message:
  Removed extraneous if block.
modified:
  java/testsuite/BaseTestCase.java basetestcase.java-20070523000102-ggam3j202kmrm4es-5
=== modified file 'java/testsuite/BaseTestCase.java'
--- a/java/testsuite/BaseTestCase.java	2007-06-30 00:22:29 +0000
+++ b/java/testsuite/BaseTestCase.java	2007-09-18 08:16:15 +0000
@@ -423,23 +423,13 @@
 		System.out.println("Done.\n");
 		this.createdObjects = new ArrayList<String[]>();
 
-
-		if (this.dbClass.equals("gwe.sql.gweMysqlDriver")) {
-			try {
-				this.conn = DriverManager.getConnection(dbUrl, "root", "");
-			} catch (Exception ex) {
-				ex.printStackTrace();
-				fail();
-			}
-		} else {
-			try {
-				this.conn = DriverManager.getConnection(dbUrl,"root","");
-			} catch (Exception ex) {
-				ex.printStackTrace();
-				fail();
-			}
+		try {
+			this.conn = DriverManager.getConnection(dbUrl,"root","");
+		} catch (Exception ex) {
+			ex.printStackTrace();
+			fail();
 		}
-
+		
 		System.out.println("Done.\n");
 		this.stmt = this.conn.createStatement();
 

Thread
Rev 158: Removed extraneous if block. in http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/ndbjmergeMonty Taylor18 Sep