Knut Anders Hatlen wrote:
Mike Matrigali <[EMAIL PROTECTED]> writes:

I see both use of prepareCall and prepareStatement in the tests.
Are both right?  If not is it surprising that the tests pass?

I think you only need prepareCall if the procedure has out parameters,
since CallableStatement has methods to retrieve parameter values whereas
PreparedStatement doesn't. If it doesn't have out parameters, you can
use either of them.

That's correct, I seem to recall some discussion that maybe at some point JDBC specification may require use of CallableStatement for a procedure call, but that's not true at the moment.

Dan.

Reply via email to