Skip to content
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

fetch_first doesn't work when cursoring is enabled #20

Open
eprothro opened this issue Nov 11, 2016 · 0 comments
Open

fetch_first doesn't work when cursoring is enabled #20

eprothro opened this issue Nov 11, 2016 · 0 comments
Labels

Comments

@eprothro
Copy link
Owner

eprothro commented Nov 11, 2016

If cursor_by has been called on a cassie query class, fetch_first will fail, with:

A singleton method has already been defined for `limit`. `with_limit` can't be implemented.
     # ./lib/cassie/statements/statement/limiting.rb:89:in `assert_no_limit_singleton'
     # ./lib/cassie/statements/statement/limiting.rb:70:in `define_limit_singleton'
     # ./lib/cassie/statements/statement/limiting.rb:46:in `with_limit'
     # ./lib/cassie/statements/execution/peeking.rb:12:in `execute'
     # ./lib/cassie/statements/execution/fetching.rb:25:in `fetch'
     # ./lib/cassie/statements/execution/fetching.rb:38:in `block in fetch_first'
@eprothro eprothro added the bug label Nov 11, 2016
eprothro added a commit that referenced this issue Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant