Skip to content

Commit 964968a

Browse files
committed
v0.0.4 update
1 parent b874dfc commit 964968a

File tree

5 files changed

+23
-5
lines changed

5 files changed

+23
-5
lines changed

HsqlDBembeddedOOo.oxt

113 Bytes
Binary file not shown.

source/HsqlDBembeddedOOo/Driver.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def __init__(self, ctx):
8787
# XDriver
8888
def connect(self, url, infos):
8989
try:
90+
print("HsqlDBDRiverOOo.Driver.connect() 1 Url: %s" % url)
9091
transformer = getUrlTransformer(self.ctx)
9192
location = self._getUrl(transformer, infos)
9293
if location is None:
@@ -221,10 +222,10 @@ def _getDataSource(self, transformer, url, name):
221222

222223
def _setDataSource(self, datasource, transformer, url, name):
223224
datasource.URL = self._getDataSourceUrl(transformer, url, name)
224-
print("Driver._setDataSource() URL: %s" % datasource.URL)
225-
datasource.Settings.JavaDriverClass = g_class
226-
path = getDataSourceClassPath(self.ctx, g_identifier)
227-
datasource.Settings.JavaDriverClassPath = path
225+
print("HsqlDBDRiverOOo.Driver._setDataSource() URL: %s" % datasource.URL)
226+
#datasource.Settings.JavaDriverClass = g_class
227+
#path = getDataSourceClassPath(self.ctx, g_identifier)
228+
#datasource.Settings.JavaDriverClassPath = path
228229

229230
def _getDataSourceUrl(self, transformer, url, name):
230231
format = (g_protocol, url.Protocol, url.Path, name, name, g_options, g_shutdown)

source/HsqlDBembeddedOOo/Drivers.xcu

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,23 @@
3838
<value xml:lang="en-US">Embedded HsqlDB Driver</value>
3939
<value xml:lang="fr-FR">Pilote HsqlDB intégré</value>
4040
</prop>
41+
<node oor:name="Properties">
42+
<node oor:name="AutoIncrementCreation" oor:op="replace">
43+
<prop oor:name="Value" oor:type="xs:string">
44+
<value>GENERATED BY DEFAULT AS IDENTITY</value>
45+
</prop>
46+
</node>
47+
<node oor:name="AutoRetrievingStatement" oor:op="replace">
48+
<prop oor:name="Value" oor:type="xs:string">
49+
<value>CALL IDENTITY()</value>
50+
</prop>
51+
</node>
52+
<node oor:name="IsAutoRetrievingEnabled" oor:op="replace">
53+
<prop oor:name="Value" oor:type="xs:boolean">
54+
<value>true</value>
55+
</prop>
56+
</node>
57+
</node>
4158
<node oor:name="Features">
4259
<node oor:name="EscapeDateTime" oor:op="replace">
4360
<prop oor:name="Value" oor:type="xs:boolean">
113 Bytes
Binary file not shown.

uno/lib/uno/database/dbconfig.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"""
2929

3030
# DataSource configuration
31-
g_protocol = 'jdbc:hsqldb:'
31+
g_protocol = 'xdbc:hsqldb:'
3232
g_path = 'hsqldb'
3333
g_jar = 'hsqldb.jar'
3434
g_class = 'org.hsqldb.jdbcDriver'

0 commit comments

Comments
 (0)