How to change sql and parameters before execute?
Answered
My plugin has a requirement that I parse special comments in sql like this:
-- #if ...
-- #fi
When I inject sql language in java literals, how do I add my own logic before actually executing, I need to modify parameters and ultimately execute sql, which class do I need to implement or inherit?
Please sign in to leave a comment.
Hi!
Unfortunately, there is no way to do what you want - to add custom logic to the query and, based on it, change the parameters and the final text of the query.
Thanks Anna.