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 0933c5c commit 9421138Copy full SHA for 9421138
src/webserver/database/sql.rs
@@ -1,6 +1,7 @@
1
use super::sql_pseudofunctions::{func_call_to_param, StmtParam};
2
use super::PreparedStatement;
3
use crate::file_cache::AsyncFromStrWithState;
4
+use crate::utils::add_value_to_map;
5
use crate::{AppState, Database};
6
use async_trait::async_trait;
7
use sqlparser::ast::{
@@ -172,7 +173,8 @@ fn extract_static_simple_select(
172
173
Expr::Value(Value::Null) => serde_json::Value::Null,
174
_ => return None,
175
};
- map.insert(alias.value.clone(), value);
176
+ let key = alias.value.clone();
177
+ map = add_value_to_map(map, (key, value));
178
}
179
Some(map)
180
0 commit comments