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".
(cherry picked from commit 84b032da1d
)
This commit is contained in:
parent
0765dcee54
commit
dcad957f19
|
@ -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