mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-01-08 09:41:17 +00:00
postgres: change types in macros
Co-authored-by: Oliver Bøving <oliverboving@gmail.com>
This commit is contained in:
parent
e42a995fd9
commit
ec27b65b26
@ -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) {
|
||||
|
||||
@ -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?;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user