We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1966bb commit d2c39efCopy full SHA for d2c39ef
crates/duckdb/src/vscalar/mod.rs
@@ -148,7 +148,7 @@ impl Connection {
148
149
/// Register the given ScalarFunction with custom state
150
#[inline]
151
- pub fn register_scalar_function_with_state<S: VScalar>(&self, name: &str, state: S::State) -> crate::Result<()>
+ pub fn register_scalar_function_with_state<S: VScalar>(&self, name: &str, state: &S::State) -> crate::Result<()>
152
where
153
S::State: Clone,
154
{
@@ -315,7 +315,7 @@ mod test {
315
316
conn.register_scalar_function_with_state::<EchoScalar>(
317
"echo2",
318
- TestState {
+ &TestState {
319
multiplier: 5,
320
prefix: "custom".to_string(),
321
},
0 commit comments