mirror of https://github.com/apache/lucene.git
SOLR-8660: JdbcTest test failure due to Locale specific issue when checking for LIMIT clause.
This commit is contained in:
parent
71f4e01d9f
commit
784124e100
|
@ -361,6 +361,6 @@ class StatementImpl implements Statement {
|
|||
private boolean containsLimit(String sql) {
|
||||
String[] tokens = sql.split("\\s+");
|
||||
String secondToLastToken = tokens[tokens.length-2];
|
||||
return ("limit").equals(secondToLastToken.toLowerCase(Locale.getDefault()));
|
||||
return ("limit").equalsIgnoreCase(secondToLastToken);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue