--- a/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java Tue Dec 31 18:11:50 2013 +0100
+++ b/java/sql-dk/src/info/globalcode/sql/dk/CLIStarter.java Wed Jan 01 01:06:38 2014 +0100
@@ -139,7 +139,7 @@
private void processQueryNow() throws ConfigurationException, SQLException, FormatterException {
DatabaseDefinition dd = getConfiguration().getDatabase(options.getDatabaseName());
FormatterDefinition fd = configuration.getFormatter(options.getFormatterName());
- try (DatabaseConnection c = dd.connect()) {
+ try (DatabaseConnection c = dd.connect(options.getDatabaseProperties())) {
log.log(Level.FINE, "Database connected");
try (Formatter f = fd.getInstance(new FormatterContext(options.getOutputStream(), options.getFormatterProperties()))) {
c.executeQuery(options.getSQLCommand(), f);