-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Validation of inappropriate use of Having clause in the query which doesn't have Group by clause
#1421
-
Hi,
I have just started exploring JSQLParser.
Is there any way to validate query for incorrect usage e.g. If query doesn't have group by clause, but still has having clause.
Right now, what i could think of using getGroupBy()/getHaving() from PlainSelect object and checking absence of Group by clause.
I was wondering whether there is some other better way to do such validation?
Appreciate any suggestions...
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment