Skip to content

Commit

Permalink
Merge pull request #1250 from melloware/main
Browse files Browse the repository at this point in the history
Fix #1095: 2.5 Check for MSSQLDelegate not full class name
  • Loading branch information
jhouserizer authored Nov 4, 2024
2 parents 98574b8 + 0811637 commit 5a1715c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ public void initialize(ClassLoadHelper loadHelper,
}

if (getUseDBLocks()) {
if(getDriverDelegateClass() != null && getDriverDelegateClass().equals(MSSQLDelegate.class.getName())) {
if(getDriverDelegateClass() != null && getDriverDelegateClass().contains(MSSQLDelegate.class.getSimpleName())) {
if(getSelectWithLockSQL() == null) {
String msSqlDflt = "SELECT * FROM {0}LOCKS WITH (UPDLOCK,ROWLOCK) WHERE " + COL_SCHEDULER_NAME + " = {1} AND LOCK_NAME = ?";
getLog().info("Detected usage of MSSQLDelegate class - defaulting 'selectWithLockSQL' to '{}'.", msSqlDflt);
Expand Down

0 comments on commit 5a1715c

Please sign in to comment.