appscot / sails-orientdb

OrientDB adapter for Waterline / Sails.js ORM
MIT License
25 stars 23 forks source link

error updating boolean value using "!" modifier #146

Closed webmasterslava closed 8 years ago

webmasterslava commented 8 years ago

User.js

module.exports.attributes = {
  Name: 'string',
  IsPrimary: 'boolean'
}

SomeController.js

module.exports.update = {
  User.update({ Name: { '!': ['test'] } }, { isPrimary: false }, function(err) {
    ...
  })
}
OrientDB.RequestError: Error on parsing command at position #0: Error parsing query:
UPDATE User SET  RETURN AFTER WHERE  Name NOT IN ['test']

See empty SET section. If replace IsPrimary field by some field with type 'string' it works perfect.