-
Notifications
You must be signed in to change notification settings - Fork 107
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 between #127
Add between #127
Conversation
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.
I think we should support composite keys instead of throwing an error. Otherwise this looks fantastic, thanks! 😄
Hey, @parsonsmatt I just pushed some changes but it maintains mysql> select * from point where ((x, y) >= (1) and (x,y) <= (3,4));
ERROR 1241 (21000): Operand should contain 2 column(s) postgres> select 1 from table where (1, 2) >= 1 and (1, 2) <= (2,3);
select 1 from table where (1, 2) between 1 and (3, 4);
ERROR: operator does not exist: record >= integer |
I updated |
Hey @parsonsmatt I think I got this correctly this time, could you take a look when possible, please and also, CI seems to be failing due to a time out, could you restart it if possible too? |
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.
Approved, pending the @since
modification and a CHANGELOG entry please 😄
@parsonsmatt Done! I updated the version number and updated the changelog entry, thanks a lot for your help in this 😄 |
Thank you! You've written a new feature, discovered a bug, and fixed that bug all in one go 😄 |
Between was added by myself on #111 but it was reverted on #123 due to the fact that new
between
clause was not working with non-val
values as @parsonsmatt mentioned here.I changed that and also included some tests to cover that case.
Please, let me know if there's another missing case so I can also address it 😃