Re: Accessing a protected variable of PreparedStatement



Daniel Pitts ha usato la sua tastiera per scrivere :
Generally, even if the PreparedStatement has a string property which
holds the "statement", it is actually just a place-holder reference
for a statement that is already compiled on your SQL server. Changing
the stmt at best would have no effect, and at worse would cause
undefined behavior. Its a bad idea to violate access constraints,
even if you are able.

Thank you for your answer, indeed I want to read only the "statement", not to change it or its properties. The goal is to read the sql string and the parameters passed to the statement itself. Do you know any way to do the job? Just to abuse of your courtesy ;-)


.