#Int with Mongo overflowing after updating prisma

4 messages · Page 1 of 1 (latest)

wintry raft
#

Hey guys, I updated my prisma today to the latest version (was 5.6) and all of the sudden my Int fields that I use to store timestamps started overflowing I guess?

For example I tried to set createdAt: 1708622646949 but the value that was saved is -774901306

I am using Mongodb, this completely broke my entire app, anyone got any idea whats going on? It was working fine before the update

I just tested it on my laptop, its still with the 5.6.0 version and it saved the correct timestamp without overflowing

onyx hare
#

Hey 👋
From which version did you upgrade?
Does the issue go away if you revert to the previous version?

wintry raft
#

@onyx hare I was at 5.6 upgraded to 5.10

#

and yes it went away after reverting back to 5.6