-
Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
Description
From the DbService
it seems that the attributes are applied only in case of enbedding
if( isEmbedded ) {
connectionString = "jdbc:" + driver + ":" + databaseName;
if( !attributes.isEmpty() ) {
connectionString += ";" + attributes;
}
if( "hsqldb".equals( driver ) ) {
connection = DriverManager.getConnection(
connectionString,
username,
password );
} else {
connection = DriverManager.getConnection( connectionString );
}
} else {
if( driver.startsWith( "hsqldb" ) ) {
connectionString = "jdbc:" + driver + ":" + driver.substring( driver.indexOf( '_' ) + 1 ) + "//"
+ host + (port.isEmpty() ? "" : ":" + port) + separator + databaseName + "?characterEncoding="
+ encoding;
} else {
connectionString =
"jdbc:" + driver + "://" + host + (port.isEmpty() ? "" : ":" + port) + separator + databaseName
+ "?characterEncoding=" + encoding;
}
connection = DriverManager.getConnection(
connectionString,
username,
password );
}Am I wronge