Add support to function flags (#622)

Breaking changes
This commit is contained in:
gwenn
2020-01-26 18:11:11 +01:00
committed by GitHub
parent b61c570cdd
commit 5565d2e058
2 changed files with 144 additions and 79 deletions

View File

@@ -1370,10 +1370,15 @@ mod test {
let interrupt_handle = db.get_interrupt_handle();
db.create_scalar_function("interrupt", 0, false, move |_| {
interrupt_handle.interrupt();
Ok(0)
})
db.create_scalar_function(
"interrupt",
0,
crate::functions::FunctionFlags::default(),
move |_| {
interrupt_handle.interrupt();
Ok(0)
},
)
.unwrap();
let mut stmt = db