We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60e8f8c commit fc07740Copy full SHA for fc07740
hibernate-core/src/main/java/org/hibernate/sql/ForUpdateFragment.java
@@ -88,7 +88,12 @@ public ForUpdateFragment addTableAlias(String alias) {
88
89
public String toFragmentString() {
90
if ( lockOptions!= null ) {
91
- return dialect.getForUpdateString( aliases.toString(), lockOptions );
+ if ( aliases.length() == 0) {
92
+ return dialect.getForUpdateString( lockOptions );
93
+ }
94
+ else {
95
+ return dialect.getForUpdateString( aliases.toString(), lockOptions );
96
97
}
98
else if ( aliases.length() == 0) {
99
if ( lockMode != null ) {
0 commit comments