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
$dataList->limit(null, $offset); doesn’t work #3487
Comments
Had a quick look at this, insta-confused. I’ve only looked at master. I think we’re dealing with a few issues:
|
@tractorcow Nudge nudge, could you take a look at this and see if you think it’s fixable as the ORM is kinda your baby? :) I’ve just had a slightly more detailed look. The trouble is that you can’t have an offset without a limit in MySQL/SQLite (not sure about PGSQL, docs are a little vague and I don’t have it set up anywhere atm). There are ways around it - |
It possibly can be done, but we'd need to check all the various connectors to see if it's possible. |
Okay, connectors/possible SQL fragments are:
Have I missed any connectors? When I get time I’ll set each of them up and give it a shot :) |
Nice job. ;) |
In 3.2, check out the DBQueryBuilder class. This is the bit we'll have to modify to generate the appropriate syntax. |
@tractorcow Thanks for taking the time to look at this :). Progress so far:
Unit tests are passing for MySQL, SQLite3 and PostgreSQL. I might add a few different assertions to the tests, as Would it better to move the MySQL-specific stuff I added to Also, how on earth do you test on SQLServer?! I’ve never encountered it before, all I can find online suggests setting up an Azure server to run it on! I don’t think my Macbook will be much use for this :( |
Progress so far looks good. |
NEW: Allow 'null' limit for database queries (closes #3487)
Closed via 37d6c82 |
We essentially need to uncomment this assertion and make it pass.
The text was updated successfully, but these errors were encountered: