Skip to content

Commit

Permalink
new version 1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
prrvchr committed Apr 16, 2024
1 parent e074b6a commit e897211
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
g_protocol = 'xdbc:hsqldb:'
g_url = 'sdbc:embedded:hsqldb'
g_user = 'SA'
g_options = ';hsqldb.default_table_type=cached;get_column_name=false;ifexists=false'
g_shutdown = ';shutdown=true'
g_options = ';hsqldb.default_table_type=cached;shutdown=true'
g_create = ';create=true'
g_exist = ';create=false'

7 changes: 4 additions & 3 deletions uno/lib/uno/embedded/documenthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@
from .configuration import g_protocol
from .configuration import g_catalog
from .configuration import g_options
from .configuration import g_shutdown
from .configuration import g_create
from .configuration import g_exist

import traceback

Expand Down Expand Up @@ -184,8 +185,8 @@ def _getDocument(self):

def _getConnectionUrl(self, exist):
path = self._path[self._index:]
url = '%s%s/%s%s' % (g_protocol, path, g_catalog, g_shutdown)
return url if exist else url + g_options
url = '%s%s/%s%s' % (g_protocol, path, g_catalog, g_options)
return url + g_exist if exist else url + g_create

def _getStorageName(self, name, oldname, newname):
return name.replace(oldname, newname)
Expand Down

0 comments on commit e897211

Please sign in to comment.