db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: are prepareCall and prepareStatement interchangeable when calling derby system procedures?
Date Sat, 26 May 2007 14:27:29 GMT
Mike Matrigali <mikem_app@sbcglobal.net> 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.

-- 
Knut Anders

Mime
View raw message