<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - HSQLDB driver not loading causes BASE error in embedded hsqldb database"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=119694#c24">Comment # 24</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - HSQLDB driver not loading causes BASE error in embedded hsqldb database"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=119694">bug 119694</a>
from <span class="vcard"><a class="email" href="mailto:lionel@mamane.lu" title="Lionel Elie Mamane <lionel@mamane.lu>"> <span class="fn">Lionel Elie Mamane</span></a>
</span></b>
<pre>(In reply to Regina Henschel from <a href="show_bug.cgi?id=119694#c22">comment #22</a>)
<span class="quote">> <db:data-source db:connection-resource="sdbc:embedded:hsqldb"> is invalid in
> ODF, because the <db:data-source> element has no attributes.</span >
While I see that in ODF 1.2, I cannot find any reference to this, either as
element or attribute. And anyway, to ensure backwards compatibility, we need to
recognise it even if invalid.
In dbaccess/source/filter/xml/xmlDataSource.cxx around line 75, we see the
recognition of db:connection-resource as attribute of db:data-source. From
gawping at the code, it seems to still be there in LibreOffice 6.1. And it is
doing exactly the same as the recognition of the xlink attribute of a
db:connection-resource child of a db:data-source in
dbaccess/source/filter/xml/xmlConnectionResource.cxx around line 65:
xDataSource->setPropertyValue(PROPERTY_URL,makeAny(sValue));
so whatever is happening is more subtle.
The error message says that LibreOffice tries to load a JDBC driver with an
empty class name; so somehow it recognises that it is a JDBC connection (and
that is correct, embedded HSQLDB is a JDBC connection), but it does not
recognise that it is an embedded HSQLDB...</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>