Automatically determine flags for array serialization

This way it automatically works with versions of postgres that didn't
support null array entries as long as the data doesn't actually have a
null
This commit is contained in:
Steven Fackler
2018-04-22 18:59:39 -07:00
parent 77b3f77468
commit bfdb557cf2
2 changed files with 59 additions and 21 deletions

View File

@@ -588,7 +588,6 @@ impl<'a, T: ToSql> ToSql for &'a [T] {
types::array_to_sql(
Some(dimension),
true,
member_type.oid(),
self.iter(),
|e, w| match e.to_sql(member_type, w)? {