This is an automated email from the ASF dual-hosted git repository.
thomasm pushed a commit to branch OAK-10527
in repository https://gitbox.apache.org/repos/asf/jackrabbit-oak.git
The following commit(s) were added to refs/heads/OAK-10527 by this push:
new fb2a1f1db6 OAK-10527 Improve readability of the explain query output
fb2a1f1db6 is described below
commit fb2a1f1db62306ce9bde63d0b62d3953ceed0ef9
Author: Thomas Mueller <[email protected]>
AuthorDate: Tue Nov 7 09:13:34 2023 +0100
OAK-10527 Improve readability of the explain query output
---
.../src/main/java/org/apache/jackrabbit/oak/query/QueryFormatter.java | 2 ++
1 file changed, 2 insertions(+)
diff --git
a/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryFormatter.java
b/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryFormatter.java
index 9794097e2c..65b33d1ebb 100644
--- a/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryFormatter.java
+++ b/oak-core/src/main/java/org/apache/jackrabbit/oak/query/QueryFormatter.java
@@ -42,8 +42,10 @@ public class QueryFormatter {
*/
public static boolean isXPath(String query, String language) {
if (language != null) {
+ // the language is case sensitive
return "xpath".equals(language);
}
+ // the query is not, at least SQL is not
query = query.trim().toLowerCase(Locale.ENGLISH);
// explain queries
if (query.startsWith("explain")) {