Skip to content

Commit 7931c89

Browse files
authored
Assertion should consider case-insensitive keywords (#83)
1 parent 614316a commit 7931c89

File tree

1 file changed

+2
-1
lines changed
  • influxdb/src/integrations/serde_integration

1 file changed

+2
-1
lines changed

influxdb/src/integrations/serde_integration/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ impl Client {
129129
})?;
130130

131131
let read_query = query.get();
132+
let read_query_lower = read_query.to_lowercase();
132133

133-
if !read_query.contains("SELECT") && !read_query.contains("SHOW") {
134+
if !read_query_lower.contains("select") && !read_query_lower.contains("show") {
134135
let error = Error::InvalidQueryError {
135136
error: String::from(
136137
"Only SELECT and SHOW queries supported with JSON deserialization",

0 commit comments

Comments
 (0)