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 6819977 commit 9a81f17Copy full SHA for 9a81f17
datafusion-postgres/src/handlers.rs
@@ -201,13 +201,11 @@ impl ExtendedQueryHandler for DfSessionService {
201
}
202
203
204
-fn ordered_param_types<'a>(
205
- types: &'a HashMap<String, Option<DataType>>,
206
-) -> Vec<Option<&'a DataType>> {
+fn ordered_param_types(types: &HashMap<String, Option<DataType>>) -> Vec<Option<&DataType>> {
207
// Datafusion stores the parameters as a map. In our case, the keys will be
208
// `$1`, `$2` etc. The values will be the parameter types.
209
210
let mut types = types.iter().collect::<Vec<_>>();
211
- types.sort_by(|a, b| a.0.cmp(&b.0));
+ types.sort_by(|a, b| a.0.cmp(b.0));
212
types.into_iter().map(|pt| pt.1.as_ref()).collect()
213
0 commit comments