GUACAMOLE-76: Clean MySQL and PostgreSQL modules for consistency.
This commit is contained in:
1 parent
2e3d3c4f5f
commit
5794338b8d
2 files changed
+2
-3
No files matched your search
+1
-1
@@ -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);
|
||||||
|
|||||||
+1
-2
@@ -73,7 +73,6 @@ public class PostgreSQLAuthenticationProviderModule implements Module {
|
|||||||
// Use UTF-8 in database
|
// Use UTF-8 in database
|
||||||
driverProperties.setProperty("characterEncoding", "UTF-8");
|
driverProperties.setProperty("characterEncoding", "UTF-8");
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -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