roy-ganz / toql

A friendly and productive ORM
50 stars 1 forks source link

Collecting composite keys and use them as single keys does not fail #3

Open roy-ganz opened 3 years ago

roy-ganz commented 3 years ago

Check this: let exam_entry_keys = entries.iter().map_key().collect::<Vec<_>>(); // This collects composite keys let query = query!(Question, "id in ?, answerType, answer_*", exam_entry_keys); // This compiles and uses first key in composite key

However this should fail.