File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -157,11 +157,6 @@ where
157
157
I :: IntoIter : ExactSizeIterator ,
158
158
{
159
159
let param_types = statement. params ( ) ;
160
- let ( param_formats, params) : ( Vec < _ > , Vec < _ > ) = params
161
- . into_iter ( )
162
- . zip ( param_types. iter ( ) )
163
- . map ( |( p, ty) | ( p. borrow_to_sql ( ) . encode_format ( ty) as i16 , p) )
164
- . unzip ( ) ;
165
160
let params = params. into_iter ( ) ;
166
161
167
162
assert ! (
@@ -171,6 +166,13 @@ where
171
166
params. len( )
172
167
) ;
173
168
169
+ let ( param_formats, params) : ( Vec < _ > , Vec < _ > ) = params
170
+ . zip ( param_types. iter ( ) )
171
+ . map ( |( p, ty) | ( p. borrow_to_sql ( ) . encode_format ( ty) as i16 , p) )
172
+ . unzip ( ) ;
173
+
174
+ let params = params. into_iter ( ) ;
175
+
174
176
let mut error_idx = 0 ;
175
177
let r = frontend:: bind (
176
178
portal,
You can’t perform that action at this time.
0 commit comments