biggora / caminte

Cross-db ORM for NodeJS
http://www.camintejs.com/
MIT License
1.08k stars 119 forks source link

MySQL: handling IN operator and empty sets #186

Open KingRial opened 6 years ago

KingRial commented 6 years ago

Using MySQL adapter with a IN operator fires a cryptic SQL error when an empty set is used. This change won't fire the SQL error but will return a correct result set.

Feel free to use it if it's considered usefull.