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 0765dce commit dcad957Copy full SHA for dcad957
hibernate-core/src/main/java/org/hibernate/loader/plan/exec/query/internal/SelectStatementBuilder.java
@@ -125,10 +125,10 @@ public void appendRestrictions(String restrictions) {
125
126
private String cleanRestrictions(String restrictions) {
127
restrictions = restrictions.trim();
128
- if ( restrictions.startsWith( "and" ) ) {
+ if ( restrictions.startsWith( "and " ) ) {
129
restrictions = restrictions.substring( 4 );
130
}
131
- if ( restrictions.endsWith( "and" ) ) {
+ if ( restrictions.endsWith( " and" ) ) {
132
restrictions = restrictions.substring( 0, restrictions.length()-4 );
133
134
0 commit comments