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
SQLite does not understand OFFSET without a LIMIT clause.
Look onto the following code:
[0.000ms] [rows:0] SELECT `queue_records`.`queue_id`,`queue_records`.`id`,`queue_records`.`journal_id` FROM `queue_records` WHERE (status = "put" AND queue_id = "a08a10b7-16ee-11ec-a4bb-482ae31ffe87") AND `queue _records`.`deleted_at` IS NULL ORDER BY rec_time DESC OFFSET 1 ?[1mSTEP?[0m: creating 2 queues ?[1mSTEP?[0m: creating queue 1 ?[1mSTEP?[0m: creating queue 2 ?[1mSTEP?[0m: inserting a bulk of queue records ?[1mSTEP?[0m: updating queue + Failure [0.004 seconds] queues tests qservice/mcstorage/sqlite/queues_test.go:19 Queue Records qservice/mcstorage/sqlite/queues_test.go:338 various delete funcs qservice/mcstorage/sqlite/queues_test.go:711 QueueDeletePutRecords qservice/mcstorage/sqlite/queues_test.go:727 checks if queue.Max = 1 [It] qservice/mcstorage/sqlite/queues_test.go:742 Unexpected error: <sqlite3.Error>: { Code: 1, ExtendedCode: 1, SystemErrno: 0x0, err: "near \"OFFSET\": syntax error", } near "OFFSET": syntax error occurred qservice/mcstorage/sqlite/queues_test.go:751
Consider also looking the diagrams: https://www.sqlite.org/syntaxdiagrams.html
Workaround is to rewrite ClauseBuilders["LIMIT"] with valid implementation inside *gorm.DB entity.
ClauseBuilders["LIMIT"]
*gorm.DB
The text was updated successfully, but these errors were encountered:
thank you for your PR.
Sorry, something went wrong.
Merge pull request go-gorm#53 from glebarez/dependabot/go_modules/git…
0cfb47a
…hub.com/glebarez/go-sqlite-1.18.0
jinzhu
No branches or pull requests
SQLite does not understand OFFSET without a LIMIT clause.
Look onto the following code:
Consider also looking the diagrams: https://www.sqlite.org/syntaxdiagrams.html
Workaround is to rewrite
ClauseBuilders["LIMIT"]
with valid implementation inside*gorm.DB
entity.The text was updated successfully, but these errors were encountered: