Introduce SqlFnArg

This commit is contained in:
gwenn
2024-01-21 10:13:07 +01:00
parent 83d67d5a29
commit f48c5781a1
6 changed files with 66 additions and 22 deletions

View File

@@ -704,7 +704,7 @@ impl Context {
#[inline]
pub fn set_result<T: ToSql>(&mut self, value: &T) -> Result<()> {
let t = value.to_sql()?;
unsafe { set_result(self.0, &t) };
unsafe { set_result(self.0, &[], &t) };
Ok(())
}