From 784124e10007e2193ff21843b790ec2312a7dbae Mon Sep 17 00:00:00 2001 From: jbernste Date: Mon, 8 Feb 2016 18:19:13 -0500 Subject: [PATCH] SOLR-8660: JdbcTest test failure due to Locale specific issue when checking for LIMIT clause. --- .../java/org/apache/solr/client/solrj/io/sql/StatementImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/StatementImpl.java b/solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/StatementImpl.java index f8598313025..1adcea84789 100644 --- a/solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/StatementImpl.java +++ b/solr/solrj/src/java/org/apache/solr/client/solrj/io/sql/StatementImpl.java @@ -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); } } \ No newline at end of file