go-gorm / gorm

The fantastic ORM library for Golang, aims to be developer friendly
https://gorm.io
MIT License
37.02k stars 3.94k forks source link

With gorm and the sqlite driver that comes with gorm, when storing a number of the string type, if the number is very long, then the number is stored in the database as a scientific notation #7147

Open lailailee opened 3 months ago

lailailee commented 3 months ago

Your Question

With gorm (" Gorm.io /gorm") and the sqlite driver that comes with gorm (" Gorm.io /driver/sqlite"), when storing a number of the string type, if the number is very long, then the number is stored in the database as a scientific notation, which bothers me

The document you expected this should be explained

Expected answer

I want the result is: in the long list of type string of Numbers to the database, such as "88888888888888888888888", it will not be in the form of scientific notation, exists in the database