Skip to content

Partial impl<'a> From<&'a Value> for ValueRef<'a> causes panics #533

@ianthetechie

Description

@ianthetechie

Title says it all. I got a bit of a nasty surprise when trying to pass a list of duckdb::types::value::Value::List as params when executing a statement. I'm sure there is some other way of passing a list of strings as a parameter, but I was quite surprised when I got a runtime panic due to the partial implementation of From. This should probably be TryFrom if it's not going to be implemented.

Value::Enum(..) => todo!(),
Value::List(..) | Value::Struct(..) | Value::Map(..) | Value::Array(..) | Value::Union(..) => {
unimplemented!()
}

(Happy to work on a solution by the way; I don't quite grok what's supposed to be happening in this impl, but with a few pointers I'd be happy to work up a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions