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

Deparsing query having DISTINCT and TOP #80

Merged
merged 2 commits into from
Oct 9, 2014

Conversation

LionelNirva
Copy link
Contributor

This is a proposal for a fix for SQL Server queries having TOP and DISTINCT clauses.
SQL Server requires to have the DISTINCT clause first.
See http://msdn.microsoft.com/en-gb/library/ms132161(v=sql.100).aspx

I only tested for SQL Server because I think that only SQL Server accepts the TOP clause.

LionelNirva added 2 commits October 3, 2014 18:34
clauses. SQL Server requires the DISTINCT clause to be the first.
wumpz added a commit that referenced this pull request Oct 9, 2014
Deparsing query having DISTINCT and TOP
@wumpz wumpz merged commit 96798f2 into JSQLParser:master Oct 9, 2014
@wumpz
Copy link
Member

wumpz commented Oct 9, 2014

merged and snapshot deployed

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

Successfully merging this pull request may close these issues.

2 participants