mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
GUACAMOLE-583: Merge changes passing SQL Server instance name to JDBC driver rather than MyBatis.
This commit is contained in:
@@ -70,16 +70,17 @@ public class SQLServerAuthenticationProviderModule implements Module {
|
||||
myBatisProperties.setProperty("JDBC.username", environment.getSQLServerUsername());
|
||||
myBatisProperties.setProperty("JDBC.password", environment.getSQLServerPassword());
|
||||
|
||||
String instance = environment.getSQLServerInstance();
|
||||
if (instance != null)
|
||||
myBatisProperties.setProperty("JDBC.instanceName", instance);
|
||||
|
||||
myBatisProperties.setProperty("JDBC.autoCommit", "false");
|
||||
myBatisProperties.setProperty("mybatis.pooled.pingEnabled", "true");
|
||||
myBatisProperties.setProperty("mybatis.pooled.pingQuery", "SELECT 1");
|
||||
|
||||
// Use UTF-8 in database
|
||||
driverProperties.setProperty("characterEncoding", "UTF-8");
|
||||
|
||||
// Retrieve instance name and set it
|
||||
String instance = environment.getSQLServerInstance();
|
||||
if (instance != null)
|
||||
driverProperties.setProperty("JDBC.instanceName", instance);
|
||||
|
||||
// Capture which driver to use for the connection.
|
||||
this.sqlServerDriver = environment.getSQLServerDriver();
|
||||
|
Reference in New Issue
Block a user