Skip to content
Permalink
Browse files
disabled use of server side generated prepared statements
  • Loading branch information
mgeiss committed Apr 21, 2017
1 parent 96fcf48 commit 642a6d9ee00baa043a3d4ef20a466bf5f344a003
Showing 1 changed file with 4 additions and 0 deletions.
@@ -107,6 +107,10 @@ public DataSource dataSource(@Qualifier(MariaDBConstants.LOGGER_NAME) final Logg
boneCPDataSource.setStatementsCacheSize(
Integer.valueOf(this.env.getProperty(MariaDBConstants.BONECP_STATEMENT_CACHE_PROP, MariaDBConstants.BONECP_STATEMENT_CACHE_DEFAULT)));

final Properties driverProperties = new Properties();
driverProperties.setProperty("useServerPrepStmts", "false");
boneCPDataSource.setDriverProperties(driverProperties);

final ContextAwareRoutingDataSource dataSource = new ContextAwareRoutingDataSource(logger, JdbcUrlBuilder.DatabaseType.MARIADB);
dataSource.setMetaDataSource(boneCPDataSource);
final HashMap<Object, Object> targetDataSources = new HashMap<>();

0 comments on commit 642a6d9

Please sign in to comment.