good morning!!!!

Skip to content
Snippets Groups Projects
Commit e6acadc0 authored by Hiram J. Pérez's avatar Hiram J. Pérez
Browse files

sqlite OFFSET allways needs a limit

parent f837d44a
Branches
Tags
No related merge requests found
...@@ -74,6 +74,9 @@ const ( ...@@ -74,6 +74,9 @@ const (
{{end}} {{end}}
{{if .Offset}} {{if .Offset}}
{{if not .Limit}}
LIMIT -1
{{end}}
OFFSET {{.Offset}} OFFSET {{.Offset}}
{{end}} {{end}}
` `
...@@ -100,6 +103,9 @@ const ( ...@@ -100,6 +103,9 @@ const (
{{end}} {{end}}
{{if .Offset}} {{if .Offset}}
{{if not .Limit}}
LIMIT -1
{{end}}
OFFSET {{.Offset}} OFFSET {{.Offset}}
{{end}} {{end}}
` `
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment