Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Validation of inappropriate use of Having clause in the query which doesn't have Group by clause #1421

Unanswered
amodrjm asked this question in Q&A
Discussion options

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...

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /