Test sub-type

This commit is contained in:
gwenn
2024-01-20 19:16:48 +01:00
parent 13399c5808
commit 83d67d5a29
2 changed files with 49 additions and 2 deletions

View File

@@ -292,6 +292,13 @@ impl ToSql for Value {
}
}
impl<'a> ToSql for ValueRef<'a> {
#[inline]
fn to_sql(&self) -> Result<ToSqlOutput<'_>> {
Ok(ToSqlOutput::Borrowed(*self))
}
}
impl<T: ToSql> ToSql for Option<T> {
#[inline]
fn to_sql(&self) -> Result<ToSqlOutput<'_>> {