Skip to content
Permalink
Browse files
Merge pull request #3 from mgeiss/develop
disabled use of server side generated prepared statements
  • Loading branch information
mgeiss committed Apr 21, 2017
2 parents 289d5b1 + 642a6d9 commit dc774a6beb6669b50343f957c30900786a0052a4
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 dc774a6

Please sign in to comment.