Skip to content

Commit 03d94b8

Browse files
authored
fix correct accepts (#1858)
I accidentally remove the accepts on the wrong place in #1856 🤦 sorry The PValue implenetation should not call the PValue implementation, but the RowValue should call the PValue implementation
1 parent fdb2699 commit 03d94b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtimes/core/src/sqldb/val.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ impl<'a> FromSql<'a> for RowValue {
281281
fn accepts(ty: &Type) -> bool {
282282
matches!(*ty, Type::BYTEA | Type::UUID)
283283
|| matches!(ty.kind(), Kind::Array(ty) if <RowValue as FromSql>::accepts(ty))
284+
|| <PValue as FromSql>::accepts(ty)
284285
}
285286
}
286287

@@ -384,7 +385,6 @@ impl<'a> FromSql<'a> for PValue {
384385
| Type::TIME
385386
) || matches!(ty.kind(), Kind::Enum(_))
386387
|| matches!(ty.kind(), Kind::Array(ty) if <PValue as FromSql>::accepts(ty))
387-
|| <PValue as FromSql>::accepts(ty)
388388
}
389389
}
390390

0 commit comments

Comments
 (0)