summaryrefslogtreecommitdiff
path: root/src/connectors
diff options
context:
space:
mode:
Diffstat (limited to 'src/connectors')
-rw-r--r--src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java2
-rw-r--r--src/connectors/src/data/io/sql/SQLConnectionWrapper.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java b/src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java
index a97a98d..f22671d 100644
--- a/src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java
+++ b/src/connectors/JUTests/data/io/sql/SQLRelDataReaderTest.java
@@ -67,7 +67,7 @@ public class SQLRelDataReaderTest {
File currentFolder = new File(main.getPath()).getParentFile();
// Build a connection and two readers on it
- builder = new SQLConnectionWrapper(DBMSType.mysql, "localhost", 3306, null, "root", "secret", "sssync");
+ builder = new SQLConnectionWrapper(DBMSType.MYSQL, "localhost", 3306, null, "root", "secret", "sssync");
reader1 = builder.newReader("testMysql1", TEST_REQUEST);
reader2 = builder.newReader("testMysql2", new File(currentFolder, "req_test.sql"));
}
diff --git a/src/connectors/src/data/io/sql/SQLConnectionWrapper.java b/src/connectors/src/data/io/sql/SQLConnectionWrapper.java
index e4bbf10..de9b2cc 100644
--- a/src/connectors/src/data/io/sql/SQLConnectionWrapper.java
+++ b/src/connectors/src/data/io/sql/SQLConnectionWrapper.java
@@ -40,7 +40,7 @@ public class SQLConnectionWrapper implements Closeable {
/**
* Enumeration of supported DBMS. Each use a particular JDBC driver.
*/
- public enum DBMSType { oracle, mysql }
+ public enum DBMSType { ORACLE, MYSQL }
private final Connection conn;
@@ -60,11 +60,11 @@ public class SQLConnectionWrapper implements Closeable {
String url;
switch ( dbms ) {
- case oracle:
+ case ORACLE:
driverClassName="oracle.jdbc.driver.OracleDriver";
url="jdbc:oracle:thin:@" + host + ":" + port + ":" + ress + "/" + db;
break;
- case mysql:
+ case MYSQL:
driverClassName="com.mysql.jdbc.Driver";
url="jdbc:mysql://" + host + ":" + port + "/" + db;
break;