Re: asSql() method is removed from ClientPreparedStatement
Hi Ken,
You are right, the method `asSql()` was removed without deprecation. Sorry for that. Like you mentioned, the fact that this is not standard API makes us a little more lenient with regard to following a strict deprecation process.
In this particular situation, the reason why this was removed was exactly because of the fact that QueryInterceptor provides the means to get the query being executed in the `preProcess` and `postProcess` methods. Well, there are differences between client-side and server-side prepared statements with regard to expanding placeholders and that could be an issue but for that there's always the `toString()` alternative. So using QueryInterceptors should be the preferred way for obtaining query strings.
What I just said doesn't invalidate the possibility of getting this feature back. As long as there's a feature request with a good justification and nice use case you can file through mysql bugs, we shall take it a look and analyze it.
Subject
Written By
Posted
December 21, 2022 09:57AM
Re: asSql() method is removed from ClientPreparedStatement
December 21, 2022 01:08PM
December 24, 2022 10:17AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.