Add i16 support for Any Type. (#1895)

* Add i16 support for Any Type.

* fix test.
This commit is contained in:
Chengxing Yuan
2022-06-09 07:01:55 +08:00
committed by GitHub
parent 185c57d936
commit edaf7d0673
2 changed files with 5 additions and 1 deletions

View File

@@ -1037,7 +1037,7 @@ CREATE TABLE heating_bills (
&self,
buf: &mut sqlx::postgres::PgArgumentBuffer,
) -> sqlx::encode::IsNull {
self.0.encode(buf)
<i16 as sqlx::Encode<Postgres>>::encode(self.0, buf)
}
}