File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -290,7 +290,6 @@ impl StatementSync {
290
290
}
291
291
param_count += 1 ;
292
292
} else if value. is_object ( ) {
293
- let mut params: HashMap < String , Local < v8:: Value > > = HashMap :: new ( ) ;
294
293
let value: v8:: Local < v8:: Object > = value. try_into ( ) . unwrap ( ) ;
295
294
let maybe_keys =
296
295
value. get_property_names ( scope, GetPropertyNamesArgs :: default ( ) ) ;
@@ -302,15 +301,13 @@ impl StatementSync {
302
301
if let Some ( key_str) = key. to_string ( scope) {
303
302
let key_str = key_str. to_rust_string_lossy ( scope) ;
304
303
if let Some ( value) = value. get ( scope, key) {
305
- params. insert ( key_str, value) ;
304
+ self . bind_params_object ( scope, key_str, value, param_count) ?;
305
+ param_count += 1 ;
306
306
}
307
307
}
308
308
}
309
309
}
310
310
}
311
- for ( key, value) in params {
312
- self . bind_params_object ( scope, key, value, param_count) ?;
313
- param_count += 1 ;
314
311
}
315
312
} else {
316
313
return Err ( SqliteError :: FailedBind ( "Unsupported type" ) ) ;
You can’t perform that action at this time.
0 commit comments