Skip to content

Deparsing query having DISTINCT and TOP#80

Merged
wumpz merged 2 commits intoJSQLParser:masterfrom
LionelNirva:patch1
Oct 9, 2014
Merged

Deparsing query having DISTINCT and TOP#80
wumpz merged 2 commits intoJSQLParser:masterfrom
LionelNirva:patch1

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