-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
releasedtype: bugDEPRECATED: replace with the "bug" issue typeDEPRECATED: replace with the "bug" issue type
Description
What are you doing?
#9999 introduced the startsWith and endsWith operators, but they seem to be reversed:
What do you expect to happen?
[Op.startsWith]: 'hat' should be defined as hat%, i.e. the string begins with hat and then has anything afterwards.
[Op.endsWith]: 'hat' should be defined as %hat, i.e. the string begins with anything but ends with hat.
What is actually happening?
startsWith and endWith are the reverse of what I expect. The unit tests for this feature exhibit the same behavior.
Dialect: any
Dialect version: any
Database version: any
Sequelize version: master
Tested with latest release: yes
Metadata
Metadata
Assignees
Labels
releasedtype: bugDEPRECATED: replace with the "bug" issue typeDEPRECATED: replace with the "bug" issue type
