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 1ab8100 commit 6b94fc2Copy full SHA for 6b94fc2
src/types/mod.rs
@@ -590,12 +590,12 @@ impl<'a, T: ToSql> ToSql for &'a [T] {
590
_ => panic!("expected array type"),
591
};
592
593
- let dimensions = [ArrayDimension {
594
- len: try!(downcast(self.len())),
595
- lower_bound: 1,
596
- }];
+ let dimension = ArrayDimension {
+ len: try!(downcast(self.len())),
+ lower_bound: 1,
+ };
597
598
- try!(types::array_to_sql(dimensions.iter().cloned(),
+ try!(types::array_to_sql(Some(dimension),
599
true,
600
member_type.oid(),
601
self.iter(),
0 commit comments