-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add IN and NIN support #16
Conversation
resolves #8 |
due to how args are handled by sql.query, this needs to be changed a bit. Currently assuming the parser receives valid rql it produces something like |
@@ -898,7 +923,7 @@ func equalExp(e1, e2 string) bool { | |||
|
|||
func split(e string) []string { | |||
var s []string | |||
for len(e) > 0 { | |||
for len(e) > 0 { // TODO: stuck in loop when parsing (?,?,?) instead of ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently breaks
} | ||
must(validateFn(opVal), "invalid datatype or format for field %q", f.Name) | ||
|
||
if opName == p.op(NIN) || opName == p.op(IN) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a better way to do this ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please look at these areas
updated to support multiple |
Any news about this feature ? Thanks |
If you give me access to your fork, I can help you |
I'll take another stab at this pending review for #49 |
First attempt #10
The equality fn for the test doesn't like comparing slices because its deep, not sure what we want to do there.
Looking at integration testing next.