HHH-10259 : ForUpdateFragment.toFragmentString() does not check if aliases are defined when lockOptions are not null
This commit is contained in:
parent
60e8f8cfe4
commit
fc077401e7
|
@ -88,7 +88,12 @@ public class ForUpdateFragment {
|
|||
|
||||
public String toFragmentString() {
|
||||
if ( lockOptions!= null ) {
|
||||
return dialect.getForUpdateString( aliases.toString(), lockOptions );
|
||||
if ( aliases.length() == 0) {
|
||||
return dialect.getForUpdateString( lockOptions );
|
||||
}
|
||||
else {
|
||||
return dialect.getForUpdateString( aliases.toString(), lockOptions );
|
||||
}
|
||||
}
|
||||
else if ( aliases.length() == 0) {
|
||||
if ( lockMode != null ) {
|
||||
|
|
Loading…
Reference in New Issue