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

Duplicate Column names #50

Closed
UndefinedOffset opened this issue Jan 8, 2014 · 1 comment
Closed

Duplicate Column names #50

UndefinedOffset opened this issue Jan 8, 2014 · 1 comment

Comments

@UndefinedOffset
Copy link
Owner

Looks like there maybe an issue with duplicate column names, we should ensure we're targeting the right table. http://stackoverflow.com/questions/17226300/sortablegridfield-causing-sql-error/20985634#20985634

@UndefinedOffset
Copy link
Owner Author

This is a limitation to the core of the framework DataQuery::max() takes the field name escapes it and quotes it as if it is a column before running the query see https://github.com/silverstripe/silverstripe-framework/blob/3.1/model/DataQuery.php#L343. As for the use of where() this has been replaced with filter(), though it may still have the same issue it depends on how the core handles it, I don't immediately see anywhere where the column's table is being detected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant