Hi, all.

For some reason unbeknownst to me, DBInstantDB was originally coded to handle
JDBC URLs in a manner inconsistent with other classes in the same package.
Currently, it concatenates the url specified in TurbineResources to the static
string "jdbc:idb=". Here's the relevant code:

    public void init(String url, String username, String password) throws
Exception
    {
        DB_CONNECTION = "jdbc:idb=" + url;

        Class.forName( DRIVER_INSTANTDB ).newInstance();
    }

Obviously, you'll have problems if you set database.default.url to something
like
    jdbc:idb=C:/TurbineDB/Turbine.prp

because DBInstantDB is going to transform it to
    jdbc:idb=jdbc:idb=C:/TurbineDB/Turbine.prp

My simple proposal is to remove the code in question so that DBInstantDB uses
the URL as it's listed in TurbineResources. This is a minor code change, indeed.
The reason I'm bringing it up on the list rather than just modifying it without
comment is that it will break existing installations using InstantDB (although
no more than my recent driver class changes ;-) ). Considering that the
Turbine-on-InstantDB user-base is probably small, I doubt this change will cause
much hand-wringing. Comments?

--
Christopher Elkins




------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Problems?:           [EMAIL PROTECTED]

Reply via email to