Section 4.2 of the JDBC spec states that a JDBC URL's format is jdbc:<subprotocol>:<subname>
. We could perform some validation of the URL that's bound to DataSourceProperties
so that we can fail fast if it doesn't meet this requirement rather than waiting for the connection pool to deal with it.
Comment From: philwebb
I'm a bit worried that there might be a connection pool that bends this rule. Is the problem with letting the connection pool deal with it that it fails after the app starts?
Comment From: wilkinsona
It's more theoretical than anything. It came up in a discussion with @odrotbohm.
Comment From: philwebb
We discussed this today but we're not sure we should enforce this rule ourselves. We generally treat properties like this as opaque values and expect the relevant delegates to deal with errors.