Mercurial > hg > monetdb-java
comparison tests/Test_Dobjects.java @ 27:04fbf3655452
Disable Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); code
as it is not needed anymore for self registering JDBC drivers
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 20 Oct 2016 19:13:11 +0200 (2016-10-20) |
parents | a5a898f6886c |
children | b9b35ca2eec2 |
comparison
equal
deleted
inserted
replaced
26:46dde2b2c991 | 27:04fbf3655452 |
---|---|
24 System.out.println(); | 24 System.out.println(); |
25 } | 25 } |
26 } | 26 } |
27 | 27 |
28 public static void main(String[] args) throws Exception { | 28 public static void main(String[] args) throws Exception { |
29 Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); | 29 // Class.forName("nl.cwi.monetdb.jdbc.MonetDriver"); // not needed anymore for self registering JDBC drivers |
30 Connection con = DriverManager.getConnection(args[0]); | 30 Connection con = DriverManager.getConnection(args[0]); |
31 Statement stmt = con.createStatement(); | 31 Statement stmt = con.createStatement(); |
32 PreparedStatement pstmt; | 32 PreparedStatement pstmt; |
33 DatabaseMetaData dbmd = con.getMetaData(); | 33 DatabaseMetaData dbmd = con.getMetaData(); |
34 | 34 |