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