HHH-8884 : Made this only remove "and " and " and"
Made this only remove "and " and " and" as otherwise tables named "android" end up being queried as "roid".
This commit is contained in:
parent
691c8e239a
commit
84b032da1d
|
@ -125,10 +125,10 @@ public class SelectStatementBuilder {
|
||||||
|
|
||||||
private String cleanRestrictions(String restrictions) {
|
private String cleanRestrictions(String restrictions) {
|
||||||
restrictions = restrictions.trim();
|
restrictions = restrictions.trim();
|
||||||
if ( restrictions.startsWith( "and" ) ) {
|
if ( restrictions.startsWith( "and " ) ) {
|
||||||
restrictions = restrictions.substring( 4 );
|
restrictions = restrictions.substring( 4 );
|
||||||
}
|
}
|
||||||
if ( restrictions.endsWith( "and" ) ) {
|
if ( restrictions.endsWith( " and" ) ) {
|
||||||
restrictions = restrictions.substring( 0, restrictions.length()-4 );
|
restrictions = restrictions.substring( 0, restrictions.length()-4 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue