SOLR-8660: JdbcTest test failure due to Locale specific issue when checking for LIMIT clause.

This commit is contained in:
jbernste 2016-02-08 18:19:13 -05:00
parent 71f4e01d9f
commit 784124e100
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}