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
Subquery error when using DataList::subtract() on a query with a limit #4047
Comments
The issue is actually because I’m doing |
Just confirming this is still an issue. Example that triggers the issue on a clean install: $exclude = SiteTree::get()->limit(1);
$pages = SiteTree::get()->subtract($exclude); |
This seems like a slightly strange use case. When do you want to remove items from a list which is limited to only a few results? Wouldn't you want to exclude the entire set? |
Okay thinking about it again, perhaps this is something we can’t fix in core. The error is MySQL-specific anyway and says “This version of MySQL doesn't yet support...”, and the docs also say “MySQL does not support |
Need to create a simple test case for this when I get time, but for now... pseudo-code:
Example of a raw query that’s failing:
The text was updated successfully, but these errors were encountered: