We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9751120 commit 26cde4fCopy full SHA for 26cde4f
src/webserver/database/sql.rs
@@ -210,7 +210,9 @@ fn extract_static_simple_select(
210
};
211
let mut map = serde_json::Map::with_capacity(select_items.len());
212
for select_item in select_items {
213
- let sqlparser::ast::SelectItem::ExprWithAlias { expr, alias } = select_item else { return None };
+ let sqlparser::ast::SelectItem::ExprWithAlias { expr, alias } = select_item else {
214
+ return None;
215
+ };
216
let value = match expr {
217
Expr::Value(Value::Boolean(b)) => serde_json::Value::Bool(*b),
218
Expr::Value(Value::Number(n, _)) => serde_json::Value::Number(n.parse().ok()?),
0 commit comments