comparison example/MJDBCTest.java @ 93:eeb71f7d36bf embedded

Fixed a bug on the JDBC MAPI connection from the old code! Fixed the connection properties for an JDBC Embedded connection. To start a JDBC Embedded connection, the user must start the embedded database beforehand with the method MonetDBEmbeddedDatabase.StartDatabase().
author Pedro Ferreira <pedro.ferreira@monetdbsolutions.com>
date Fri, 06 Jan 2017 12:36:33 +0000 (2017-01-06)
parents 6f74e01c57da
children 5b13ccaba741
comparison
equal deleted inserted replaced
91:6f74e01c57da 93:eeb71f7d36bf
15 * 15 *
16 * @author Fabian Groffen 16 * @author Fabian Groffen
17 */ 17 */
18 public class MJDBCTest { 18 public class MJDBCTest {
19 public static void main(String[] args) throws Exception { 19 public static void main(String[] args) throws Exception {
20 // make sure the driver is loaded 20 //Class.forName("nl.cwi.monetdb.jdbc.MonetDriver");
21 Class.forName("nl.cwi.monetdb.jdbc.MonetDriver");
22 // turn on debugging (disabled) 21 // turn on debugging (disabled)
23 //nl.cwi.monetdb.jdbc.MonetConnection.setDebug(true); 22 //nl.cwi.monetdb.jdbc.MonetConnection.setDebug(true);
24 Connection con = DriverManager.getConnection("jdbc:monetdb://localhost/notused", "monetdb", "monetdb"); 23 Connection con = DriverManager.getConnection("jdbc:monetdb://localhost/notused", "monetdb", "monetdb");
25 Statement st = con.createStatement(); 24 Statement st = con.createStatement();
26 ResultSet rs; 25 ResultSet rs;