https://issues.apache.org/bugzilla/show_bug.cgi?id=47439





--- Comment #6 from Sebb <s...@apache.org>  2009-06-28 05:31:18 PST ---
(In reply to comment #2)
> The Javadoc for Driver.connect() states:
> 
> >>
> Attempts to make a database connection to the given URL. The driver should
> return "null" if it realizes it is the wrong kind of driver to connect to the
> given URL. This will be common, as when the JDBC driver manager is asked to
> connect to a given URL it passes the URL to each loaded driver in turn. 
> 
> The driver should throw an SQLException if it is the right driver to connect 
> to
> the given URL but has trouble connecting to the database. 
> <<
> 
> As it happens, the JDBC driver for Derby also returns null in other cases,
> which is how I found the problem.

The "other cases" turned out to be a red herring - I was using the wrong
driver, so it was equivalent to the first case. Derby JDBC behaves as per the
API, i.e. returns null if it cannot handle the url.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to