mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-76: Clean MySQL and PostgreSQL modules for consistency.
This commit is contained in:
@@ -70,7 +70,7 @@ public class MySQLAuthenticationProviderModule implements Module {
|
|||||||
myBatisProperties.setProperty("mybatis.pooled.pingQuery", "SELECT 1");
|
myBatisProperties.setProperty("mybatis.pooled.pingQuery", "SELECT 1");
|
||||||
|
|
||||||
// Use UTF-8 in database
|
// Use UTF-8 in database
|
||||||
driverProperties.setProperty("characterEncoding","UTF-8");
|
driverProperties.setProperty("characterEncoding", "UTF-8");
|
||||||
|
|
||||||
// Allow use of multiple statements within a single query
|
// Allow use of multiple statements within a single query
|
||||||
driverProperties.setProperty("allowMultiQueries", "true");
|
driverProperties.setProperty("allowMultiQueries", "true");
|
||||||
@@ -86,7 +86,7 @@ public class MySQLAuthenticationProviderModule implements Module {
|
|||||||
// Bind MyBatis properties
|
// Bind MyBatis properties
|
||||||
Names.bindProperties(binder, myBatisProperties);
|
Names.bindProperties(binder, myBatisProperties);
|
||||||
|
|
||||||
// Bing JDBC driver properties
|
// Bind JDBC driver properties
|
||||||
binder.bind(Properties.class)
|
binder.bind(Properties.class)
|
||||||
.annotatedWith(Names.named("JDBC.driverProperties"))
|
.annotatedWith(Names.named("JDBC.driverProperties"))
|
||||||
.toInstance(driverProperties);
|
.toInstance(driverProperties);
|
||||||
|
@@ -71,8 +71,7 @@ public class PostgreSQLAuthenticationProviderModule implements Module {
|
|||||||
myBatisProperties.setProperty("mybatis.pooled.pingQuery", "SELECT 1");
|
myBatisProperties.setProperty("mybatis.pooled.pingQuery", "SELECT 1");
|
||||||
|
|
||||||
// Use UTF-8 in database
|
// Use UTF-8 in database
|
||||||
driverProperties.setProperty("characterEncoding","UTF-8");
|
driverProperties.setProperty("characterEncoding", "UTF-8");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -85,7 +84,7 @@ public class PostgreSQLAuthenticationProviderModule implements Module {
|
|||||||
// Bind MyBatis properties
|
// Bind MyBatis properties
|
||||||
Names.bindProperties(binder, myBatisProperties);
|
Names.bindProperties(binder, myBatisProperties);
|
||||||
|
|
||||||
// Bing JDBC driver properties
|
// Bind JDBC driver properties
|
||||||
binder.bind(Properties.class)
|
binder.bind(Properties.class)
|
||||||
.annotatedWith(Names.named("JDBC.driverProperties"))
|
.annotatedWith(Names.named("JDBC.driverProperties"))
|
||||||
.toInstance(driverProperties);
|
.toInstance(driverProperties);
|
||||||
|
Reference in New Issue
Block a user