You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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