-
Notifications
You must be signed in to change notification settings - Fork 72
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
Offset and Limit not present in BaseQuery.String/ToSql #264
Comments
I'm not 100% percent sure on this, but I think these is not done on There are a number of issues concerning the |
@roobre I see how you might not want to apply limit and offset all the time, but that logic to selectively apply them (the same code referenced above) can live in the Only edge case is if a different method compiles the query and does some other stuff prohibiting a limit and offset from ever being applied. Though I haven't looked very hard for this edge case, I think it's probably something we can work around. Would it be OK if I open a PR attempting to refactor this? |
Last time I checked it was an issue with the interfaces |
I was writing some code that conditionally applies a
LIMIT
andOFFSET
; and while testing ended up very confused because callingquery.ToSring()
orquery.ToSql()
did not apply myLIMIT
andOFFSET
. After grepping through the kallax code I realized that these aren't applied until theStore.Find
method is executed:go-kallax/store.go
Lines 385 to 392 in 6e31900
I was just wondering if these are supposed to be applied here, or if this should remain a concern of
BaseQuery
.Thanks!
The text was updated successfully, but these errors were encountered: