catfan / Medoo

The lightweight PHP database framework to accelerate the development.
https://medoo.in
MIT License
4.84k stars 1.15k forks source link

regresion: in where condition use array as field value, produces error #666

Closed michael-caraiani closed 6 years ago

michael-caraiani commented 6 years ago

was updated to 1.5 version and had this issue where condition: {AND: {customer_id: [100]}} query: SELECT * FROM "devices" WHERE ("customer_id" IN (:MeDoO_1_mEdOo0))

result:

PDOStatement::bindValue() expects parameter 3 to be integer, array given PDOException: SQLSTATE[HY093]: Invalid parameter number: no parameters were bound

catfan commented 6 years ago

Sorry for that. We emergency fixed about it. It should works now.

rakshazi commented 6 years ago

Thank you! We will test it tomorrow and close issue if all ok