Lower case "order by" keyword causes wrong LIMIT query on SQL Server#563
Merged
deeky666 merged 1 commit intodoctrine:masterfrom Apr 24, 2014
Merged
Lower case "order by" keyword causes wrong LIMIT query on SQL Server#563deeky666 merged 1 commit intodoctrine:masterfrom
deeky666 merged 1 commit intodoctrine:masterfrom
Conversation
|
Hello, thank you for creating this pull request. I have automatically opened an issue http://www.doctrine-project.org/jira/browse/DBAL-862 We use Jira to track the state of pull requests and the versions they got |
Member
|
I just noticed it, but the regex doesn't seem to enforce at least one whitespace before the |
Author
|
The regex in line 1153 already enforces one whitespace before |
Member
|
@stchr yeah, re-read it and it seems like it's indeed ok. |
Member
|
@deeky666 mergeable |
Member
|
looks good to me |
deeky666
added a commit
that referenced
this pull request
Apr 24, 2014
Lower case "order by" keyword causes wrong LIMIT query on SQL Server
This was referenced Dec 6, 2015
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SQLServerPlatform::modifyLimitQuery('SELECT * FROM user order by username')(lowercase order by)returns
SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY order) AS doctrine_rownum FROM user order by username) AS doctrine_tbl WHERE doctrine_rownum BETWEEN 1 AND 10instead of
SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY username) AS doctrine_rownum FROM user) AS doctrine_tbl WHERE doctrine_rownum BETWEEN 1 AND 10