postgres: change types in macros

Co-authored-by: Oliver Bøving <oliverboving@gmail.com>
This commit is contained in:
Ryan Leckey 2020-03-20 20:07:52 -07:00
parent e42a995fd9
commit ec27b65b26
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ where
let el_len_index = self.buf.len();
self.buf.put_i32::<BE>(0);
// Allocate the element it self
// Allocate and encode the element it self
let el_start = self.buf.len();
if let IsNull::Yes = Encode::<Postgres>::encode_nullable(&item, self.buf) {

View File

@ -193,7 +193,7 @@ async fn test_array_from_slice() -> anyhow::Result<()> {
let list: &[i32] = &[1, 2, 3, 4i32];
let result = sqlx::query!("SELECT $1::int[] as my_array", *list)
let result = sqlx::query!("SELECT $1::int[] as my_array", list)
.fetch_one(&mut conn)
.await?;