Kitura / Swift-Kuery-ORM

An ORM for Swift, built on Codable
Apache License 2.0
212 stars 30 forks source link

Correct number of clauses when filtering with an array #113

Closed kilnerm closed 5 years ago

kilnerm commented 5 years ago

When using QueryParams to filter using an array the ORM generates an incorrect number of clauses to append to the WHERE within the resulting FIND query.

This PR adds a test which catches the error condition along with a fix for the problem.