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