-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Closed
Description
Issue type:
[ ] question
[*] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ] cordova
[ ] mongodb
[ ] mssql
[x] mysql / mariadb
[ ] oracle
[ ] postgres
[ ] sqlite
[ ] sqljs
[ ] react-native
[ ] expo
TypeORM version:
[x] latest
[x] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem:
- Use buffer as the id type. Define column type to
binary. - Add new entity into db and read it, then update it's field.
- Invoke the save() method of the entity repository.
- The save() is always INSERT a new entity, which cause duplication on primary constrains check.
- Then, change id type to
stringtype. The save() works as normal, UPDATE.
I guess we maybe not implement the proper buffer compare logic, as only compare the object/string etc. currently.
Metadata
Metadata
Assignees
Labels
No labels