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 39a11aa commit e30c381Copy full SHA for e30c381
src/webserver/database/sql.rs
@@ -216,11 +216,11 @@ fn extract_static_simple_select(
216
let mut items = Vec::with_capacity(select_items.len());
217
let mut params_iter = params.iter().cloned();
218
for select_item in select_items {
219
+ use serde_json::Value::{Bool, Null, Number, String};
220
+ use SimpleSelectValue::{Dynamic, Static};
221
let sqlparser::ast::SelectItem::ExprWithAlias { expr, alias } = select_item else {
222
return None;
223
};
- use serde_json::Value::*;
- use SimpleSelectValue::*;
224
let value = match expr {
225
Expr::Value(Value::Boolean(b)) => Static(Bool(*b)),
226
Expr::Value(Value::Number(n, _)) => Static(Number(n.parse().ok()?)),
0 commit comments