-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json and jsonb comparison does not work #3496
Comments
please provide more details including minimal entity code for reproduction. |
The second save method is to run update. |
can you please explain why problem is in there? Json.stringify doesn't change properties order, right? |
ah okay, problem is that comparison doesn't work properly. If you could describe it in details I could understand it more easily from the beginning. How do you suggest to make this comparison then? |
|
okay, PR it. Make sure to make it against all drivers. Also add a comment why json.stringify doesn't work |
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[ ]
latest
[ ]
@next
[ 0.2.8]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
If we save such an object in the database:
then postgresql saves this object as:
The problem is here: https://github.com/typeorm/typeorm/blob/master/src/persistence/SubjectChangedColumnsComputer.ts#L80-L83
The text was updated successfully, but these errors were encountered: