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

[DBAL-497] Fixed SQL Server platform replacing 'FROM' in column names during limit #306

Merged
merged 1 commit into from
Apr 18, 2013

Conversation

shaneneuerburg
Copy link
Contributor

The regex used to replace the FROM clause was in a "starts with" form, which also matched column names that start with the word "FROM". This resulted in column names being replaced with the logic used for limiting, breaking the query once pagination is used. I added a whitespace requirement after "FROM' in the regex as well as a trailing whitespace in the replacement.

@doctrinebot
Copy link

Hello,

thank you for creating this pull request. I have automatically opened an issue
on our Jira Bug Tracker for you. See the issue link:

https://www.doctrine-project.org/jira/browse/DBAL-498

We use Jira to track the state of pull requests and the versions they got
included in.

guilhermeblanco added a commit that referenced this pull request Apr 18, 2013
[DBAL-497] Fixed SQL Server platform replacing 'FROM' in column names during limit
@guilhermeblanco guilhermeblanco merged commit 10be52a into doctrine:master Apr 18, 2013
@beberlei
Copy link
Member

Added a test for this, but couldn't merge it into 2.3 because the code changed so much in the meantime.

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

Successfully merging this pull request may close these issues.

None yet

4 participants