Skip to content
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

Can't compile with latest version #116

Closed
WinXaito opened this issue Oct 7, 2022 · 2 comments
Closed

Can't compile with latest version #116

WinXaito opened this issue Oct 7, 2022 · 2 comments
Assignees

Comments

@WinXaito
Copy link

WinXaito commented Oct 7, 2022

Description

With the version 1.4.1 I have the following error:

C:\Users\***\go\pkg\mod\gorm.io\driver\sqlite@v1.4.1\sqlite.go:101:23: invalid operation: limit.Limit != nil (mismatched types int and untyped nil)
C:\Users\***\go\pkg\mod\gorm.io\driver\sqlite@v1.4.1\sqlite.go:101:31: invalid operation: cannot indirect limit.Limit (variable of type int)
C:\Users\***\go\pkg\mod\gorm.io\driver\sqlite@v1.4.1\sqlite.go:102:13: invalid operation: cannot indirect limit.Limit (variable of type int)

Probably due to this commit: ea59bcf

Revert to1.3.6 temporary fix the problem.

@WinXaito
Copy link
Author

WinXaito commented Oct 7, 2022

it works with Gorm version 1.24.0 (I was in 1.23.10), considering the hours of release, I probably made the update between the two...

@WinXaito WinXaito closed this as completed Oct 7, 2022
@gw123
Copy link

gw123 commented Feb 28, 2024

encountered the same issue. It seems to be a version problem. I resolved the issue by upgrading the SQLite version from v1.1.3 to v1.5.2.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants