Merge pull request #1160 from gwenn/sub_type

Make possible to specify subtype of SQL function
This commit is contained in:
gwenn
2024-02-04 10:50:29 +01:00
committed by GitHub
6 changed files with 147 additions and 45 deletions

View File

@@ -606,6 +606,13 @@ impl Statement<'_> {
.conn
.decode_result(unsafe { ffi::sqlite3_bind_zeroblob(ptr, col as c_int, len) });
}
#[cfg(feature = "functions")]
ToSqlOutput::Arg(_) => {
return Err(Error::SqliteFailure(
ffi::Error::new(ffi::SQLITE_MISUSE),
Some(format!("Unsupported value \"{value:?}\"")),
));
}
#[cfg(feature = "array")]
ToSqlOutput::Array(a) => {
return self.conn.decode_result(unsafe {