SoftwareBrothers / adminjs-sequelizejs

Sequelizejs adapter for AdminBro
MIT License
27 stars 34 forks source link

convertFilter: error on string type on mysql #5

Closed menreiki closed 5 years ago

menreiki commented 5 years ago

Hello, I am using MySql dialect for sequelize and I've noticed that filtering string properties results in an error. [Op.iRegexp] is used in convertFilter(), that is a PG specific operator according to https://sequelize.org/master/manual/querying.html#operators. Could you please switch to native SQL [Op.like] ? Thank you!

sequelize: 4.44.3 admin-bro: 1.1.4 admin-bro-expressjs: 0.2.0 admin-bro-sequelizejs: 0.2.2 node: 10.15.3

wojtek-krysiak commented 5 years ago

fixed with version admin-bro-sequelizejs@0.2.5

menreiki commented 4 years ago

Thank you!