We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 614316a commit 7931c89Copy full SHA for 7931c89
influxdb/src/integrations/serde_integration/mod.rs
@@ -129,8 +129,9 @@ impl Client {
129
})?;
130
131
let read_query = query.get();
132
+ let read_query_lower = read_query.to_lowercase();
133
- if !read_query.contains("SELECT") && !read_query.contains("SHOW") {
134
+ if !read_query_lower.contains("select") && !read_query_lower.contains("show") {
135
let error = Error::InvalidQueryError {
136
error: String::from(
137
"Only SELECT and SHOW queries supported with JSON deserialization",
0 commit comments