Skip to content

Commit 91c4483

Browse files
committed
fix: connect_server() should not raise an error when host is None, but attach to embedded server
1 parent fcffa9f commit 91c4483

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

firebird/driver/core.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4904,7 +4904,7 @@ def connect_server(server: str, *, user: str=None, password: str=None,
49044904
"""Establishes a connection to server's service manager.
49054905
49064906
Arguments:
4907-
host: Server host machine or Server configuration name.
4907+
server: Server host machine or Server configuration name.
49084908
user: User name.
49094909
password: User password.
49104910
crypt_callback: Callback that provides encryption key.
@@ -4923,6 +4923,8 @@ def connect_server(server: str, *, user: str=None, password: str=None,
49234923
host = server
49244924
else:
49254925
host = srv_config.host.value
4926+
if host is None:
4927+
host = 'service_mgr'
49264928
if not host.endswith('service_mgr'):
49274929
if host and not host.endswith(':'):
49284930
host += ':'

0 commit comments

Comments
 (0)