We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86d11ef commit eb5b015Copy full SHA for eb5b015
sqlx-core/src/decode.rs
@@ -111,6 +111,8 @@ macro_rules! impl_decode_for_smartpointer {
111
Vec<u8>: Decode<'r, DB>,
112
{
113
fn decode(value: <DB as Database>::ValueRef<'r>) -> Result<Self, BoxDynError> {
114
+ // The `Postgres` implementation requires this to be decoded as an owned value because
115
+ // bytes can be sent in text format.
116
let ref_str = <Vec<u8> as Decode<DB>>::decode(value)?;
117
Ok(ref_str.into())
118
}
0 commit comments