rorm
rorm copied to clipboard
Database error occurs when querying with empty condition
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