Skip to content

Commit

Permalink
0004765: Prevent blocking on Firebird with lock timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jan 14, 2021
1 parent ac6b035 commit ed78ec3
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -128,10 +128,11 @@ public static ResettableBasicDataSource create(TypedProperties properties,
if (StringUtils.isNotBlank(connectionProperties)) {
String[] tokens = connectionProperties.split(";");
for (String property : tokens) {
String[] keyValue = property.split("=");
String[] keyValue = property.replaceAll("==", "!!").split("=");
if (keyValue != null && keyValue.length > 1) {
keyValue[1] = keyValue[1].replaceAll("!!", "=");
LoggerFactory.getLogger(BasicDataSourceFactory.class).info(
"Setting database connection property {}={}", keyValue[0], keyValue[1]);
"Setting database connection property {} to {}", keyValue[0], keyValue[1]);
dataSource.addConnectionProperty(keyValue[0], keyValue[1]);
}
}
Expand Down

0 comments on commit ed78ec3

Please sign in to comment.