rorm icon indicating copy to clipboard operation
rorm copied to clipboard

Database error occurs when querying with empty condition

Open myOmikron opened this issue 2 years ago • 0 comments

query!(&db, Foo)
    .condition(DynamicCollection::or(vec![]))
    .all()
    .await?;

As it may happen that we provide no entries in a dynamic collection, I'd vote for some pattern to check before providing the collection to the condition of the query

myOmikron avatar Oct 24 '23 16:10 myOmikron