Mercurial > hg > monetdb-java
comparison example/SQLcopyinto.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 | 08bc9009d190 |
comparison
equal
deleted
inserted
replaced
91:6f74e01c57da | 93:eeb71f7d36bf |
---|---|
41 | 41 |
42 // now create a connection manually to perform a load, this can | 42 // now create a connection manually to perform a load, this can |
43 // of course also be done simultaneously with the JDBC | 43 // of course also be done simultaneously with the JDBC |
44 // connection being kept connected | 44 // connection being kept connected |
45 | 45 |
46 MapiConnection server = new MapiConnection(null, "database",null, "sql", true,"localhost", 50000 ); | 46 MapiConnection server = new MapiConnection(null, null, "sql", false, true,"localhost", 50000, "database"); |
47 | 47 |
48 try { | 48 try { |
49 List warning = server.connect("monetdb", "monetdb"); | 49 List warning = server.connect("monetdb", "monetdb"); |
50 if (warning != null) { | 50 if (warning != null) { |
51 for (Object aWarning : warning) { | 51 for (Object aWarning : warning) { |