-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix lock handling for HANA #10767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix lock handling for HANA #10767
Conversation
} | ||
private String withTimeout(String lockString, int timeout) { | ||
return switch (timeout) { | ||
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString; |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Dialect.supportsNoWait
private String withTimeout(String lockString, int timeout) { | ||
return switch (timeout) { | ||
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString; | ||
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString; |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Dialect.supportsSkipLocked
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString; | ||
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString; | ||
case Timeouts.WAIT_FOREVER_MILLI -> lockString; | ||
default -> supportsWait() ? lockString + " wait " + getTimeoutInSeconds( timeout ) : lockString; |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Dialect.supportsWait
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString; | ||
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString; | ||
case Timeouts.WAIT_FOREVER_MILLI -> lockString; | ||
default -> supportsWait() ? lockString + " wait " + getTimeoutInSeconds( timeout ) : lockString; |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Dialect.getTimeoutInSeconds
} | ||
private String withTimeout(String lockString, int timeout) { | ||
return switch (timeout) { | ||
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString; |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Dialect.supportsNoWait
private String withTimeout(String lockString, int timeout) { | ||
return switch (timeout) { | ||
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString; | ||
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString; |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Dialect.supportsSkipLocked
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString; | ||
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString; | ||
case Timeouts.WAIT_FOREVER_MILLI -> lockString; | ||
default -> supportsWait() ? lockString + " wait " + getTimeoutInSeconds( timeout ) : lockString; |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Dialect.supportsWait
case Timeouts.NO_WAIT_MILLI -> supportsNoWait() ? lockString + " nowait" : lockString; | ||
case Timeouts.SKIP_LOCKED_MILLI -> supportsSkipLocked() ? lockString + SQL_IGNORE_LOCKED : lockString; | ||
case Timeouts.WAIT_FOREVER_MILLI -> lockString; | ||
default -> supportsWait() ? lockString + " wait " + getTimeoutInSeconds( timeout ) : lockString; |
Check notice
Code scanning / CodeQL
Deprecated method or constructor invocation Note
Dialect.getTimeoutInSeconds
1cf74a8
to
b2ec9c1
Compare
[Please describe here what your change is about]
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.