We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
error
sql: Scan error on column index 1, name "signid": converting driver.Value type []uint8 ("13727213540140455812") to a int64: value out of range
table schema
Signid int64 `gorm:"column:signid;not null;comment:XXXXXXX" json:"signid"` `signid` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'XXX',
gen query code
query.Use(db).UserQywxQrcode.WithContext(ctx).Where(table.ID.Eq(id)).First()
go.mod
gorm.io/driver/sqlite v1.5.2 gorm.io/gen v0.3.26 gorm.io/gorm v1.25.11 gorm.io/plugin/dbresolver v1.5.2 gorm.io/plugin/soft_delete v1.1.0
how to fix
Skip the single ID when querying
The text was updated successfully, but these errors were encountered:
https://gorm.io/gen/database_to_structs.html#Field-Options Try FieldType("signid","uint64")
FieldType("signid","uint64")
to a int64: value out of range
Sorry, something went wrong.
No branches or pull requests
error
table schema
gen query code
go.mod
how to fix
The text was updated successfully, but these errors were encountered: