Hi,

> I think that is an unfortunate change

I understand it is unfortunate for you, however there were many people that
made a mistake, and run into problems, because they didn't find the
database file, or created multiple databases.

> because the DB is embedded in a system which does its own URL-handling
(part of which is a normalization that removes one or more "./" so there is
very little I can do.

If you can't change the application to use the prefix "jdbc:h2:./" instead
"jdbc:h2:", then I'm sorry about that, but there is nothing I can do about
it...

> but maybe a setting could be added (unless it already exists) to switch
this on or off.

I think there are already too many switches...

Regards,
Thomas


On Wed, Aug 26, 2015 at 1:44 PM, Christian MICHON <
[email protected]
<javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:

> I'll second that, but maybe a setting could be added (unless it already
> exists) to switch this on or off. Like this we could use this switch to
> ease legacy issues while preserving the directions chosen by the lead devs
> of H2.
>
> As for moving to 1.4.188, some times you have no choice but to move on. I
> recently tried to use linked table on SQlite database from ITIS (taxonomy)
> and it works only with 1.4.188. Anything else will trigger a NPE, and if
> not fixed on an older branch like 1.3, you have to move to the latest or
> use other tricks than linked tables.
>
>
> On Tuesday, August 25, 2015 at 7:29:12 PM UTC+2, Johann Petrak wrote:
>>
>> I think that is an unfortunate change - it breaks practically all
>> existing relative URL paths in my case because none of them includes that
>> "./" part and it violates the specification of what a relative URL can be
>> which nowhere excludes URLs without the "./" part. Actually, the "./" part
>> is explicitly superfluous and usually a nuisance that one wants to get read
>> of when normalizing URLs.
>>
>> In my case it may be a reason not to upgrade to 1.4 because the DB is
>> embedded in a system which does its own URL-handling (part of which is a
>> normalization that removes one or more "./" so there is very little I can
>> do.
>>
>> Is there any chance to make it work with all relative URLs again?
>>
>> I know of no other database or other software which enforces this.
>>
>> Johann
>>
>> On Tuesday, 28 April 2015 19:36:57 UTC+2, Thomas Mueller wrote:
>>>
>>> Hi,
>>>
>>> Many users ran into problems because they used something like
>>> "jdbc:h2:test" and then either didn't find the database file, or created a
>>> second database when running the application in a different directory.
>>> That's why in version 1.4.x, now relative path only work when using ".", as
>>> in "jdb:h2:./test".
>>>
>>> The documentation is wrong. I will update it.
>>>
>>>
>>>> jdbc:h2:file:data/sample
>>>>
>>>
>>> It should be: jdbc:h2:file:./data/sample
>>>
>>> Regards,
>>> Thomas
>>>
>>> --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to