You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unhandled rejection SequelizeValidationError: [1,2] is not a valid integer
at INTEGER.validate (node_modules/sequelize/lib/data-types.js:175:11)
at Object.escape (node_modules/sequelize/lib/dialects/abstract/query-generator.js:917:26)
at Object._whereParseSingleValueObject (node_modules/sequelize/lib/dialects/abstract/query-generator.js:2387:49)
...
This is because the escape function in query-generator requires options.isList to be true for an array value to be correctly validated, but on line 2387 it is called without any options: this.escape(value, field).
The same is true for Op.all. On lines 2418 and 2422, escape is called for Op.any/Op.all with isList = true, but these lines only apply to ANY/ALL conditions which are nested, e.g.
What are you doing?
What do you expect to happen?
Records 1 and 2 are logged
What is actually happening?
This is because the
escape
function in query-generator requiresoptions.isList
to be true for an array value to be correctly validated, but on line 2387 it is called without any options:this.escape(value, field)
.The same is true for Op.all. On lines 2418 and 2422, escape is called for Op.any/Op.all with
isList = true
, but these lines only apply to ANY/ALL conditions which are nested, e.g.Dialect: postgres
Dialect version: 10
Sequelize version: 4.42.0
Tested with latest release: Yes
Note : Your issue may be ignored OR closed by maintainers if it's not tested against latest version OR does not follow issue template.
The text was updated successfully, but these errors were encountered: