Closed lynaghk closed 12 years ago
Thanks for the PR.
Unfortunately, seq? is not a generalization of vector? because it returns false on vectors. The function you might have been looking for is sequential?. Also, there is no testcase for IN, that would have caught that.
Would you mind adding test cases and correcting the code?
kind regards
Thanks for the catch! I just started with Clojure, and I probably shouldn't be submitting pull requests at 10 p.m. anyway = )
I've amended the commit to use coll?
and updated the test cases to try passing a vector, list, and set to in
.
That seems to work fine, thanks!
I was surprised that when I passed a list into
in
:the compiled SQL only contained the first element of the list. I dug into the source and found that it was because prefix operators check their arguments with
vector?
. I changed this to the more generalseq?
, and it seems to work fine for me (both in the REPL, and all of the tests pass when runningcake test
).