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

Fixed limit applying for Oracle queries. #4254

Closed
wants to merge 3 commits into from
Closed

Fixed limit applying for Oracle queries. #4254

wants to merge 3 commits into from

Conversation

miramir
Copy link
Contributor

@miramir miramir commented Jul 11, 2014

In most DB limit applying on query done through concatenating query with limit string, like LIMIT n OFFSET m. Such case in Oracle done through wrapping whole query by special query. In all schemes, except \yii\db\oci, QueryBuilder::buildLimit() returns limit string for concatenating. \yii\db\oci\QueryBuilder::buildLimit() returns whole query with applied limit.
At first this brakes method behaviour. Also such behaviour does not work in SqlDataProvider.

@samdark samdark added this to the 2.0 RC milestone Jul 11, 2014
@qiangxue
Copy link
Member

MSSQL has similar problem and cannot be solved using this approach.

Perhaps we should fix SqlDataProvider directly by adding special handling of these DBMS.

@miramir
Copy link
Contributor Author

miramir commented Jul 11, 2014

This request solve this problem for Oracle.

@miramir
Copy link
Contributor Author

miramir commented Jul 11, 2014

May by combine QueryBuilder::buildLimit() and QueryBuilder::buildOrder(), this wil help to solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:to be verified Needs to be reproduced and validated. type:bug Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants