Skip to content

Commit 1a2855e

Browse files
committed
Release 1.5.1
1 parent 10fb811 commit 1a2855e

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

docs/changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
#########
44

5+
Version 1.5.1
6+
=============
7+
8+
* Fix: `.ServerDbServices.set_replica_mode()` now works correctly.
9+
510
Version 1.5.0
611
=============
712

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
author = 'Pavel Císař'
2424

2525
# The short X.Y version
26-
version = '1.5.0'
26+
version = '1.5.1'
2727

2828
# The full version, including alpha/beta/rc tags
29-
release = '1.5.0'
29+
release = '1.5.1'
3030

3131

3232
# -- General configuration ---------------------------------------------------

firebird/driver/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4653,8 +4653,7 @@ def set_access_mode(self, *, database: FILESPEC, mode: DbAccessMode, role: str=N
46534653
spb.insert_string(SPBItem.DBNAME, str(database), encoding=self._srv().encoding)
46544654
if role is not None:
46554655
spb.insert_string(SPBItem.SQL_ROLE_NAME, role, encoding=self._srv().encoding)
4656-
spb.insert_bytes(SrvPropertiesOption.ACCESS_MODE,
4657-
bytes([mode]))
4656+
spb.insert_bytes(SrvPropertiesOption.ACCESS_MODE, bytes([mode]))
46584657
self._srv()._svc.start(spb.get_buffer())
46594658
def set_sql_dialect(self, *, database: FILESPEC, dialect: int, role: str=None) -> None:
46604659
"""Set database SQL dialect.
@@ -4948,10 +4947,11 @@ def set_replica_mode(self, *, database: FILESPEC, mode: ReplicaMode, role: str=N
49484947
"""
49494948
self._srv()._reset_output()
49504949
with a.get_api().util.get_xpb_builder(XpbKind.SPB_START) as spb:
4950+
spb.insert_tag(ServerAction.PROPERTIES)
49514951
spb.insert_string(SPBItem.DBNAME, str(database), encoding=self._srv().encoding)
49524952
if role is not None:
49534953
spb.insert_string(SPBItem.SQL_ROLE_NAME, role, encoding=self._srv().encoding)
4954-
spb.insert_int(SrvPropertiesOption.REPLICA_MODE, mode.value)
4954+
spb.insert_bytes(SrvPropertiesOption.REPLICA_MODE, bytes([mode]))
49554955
self._srv()._svc.start(spb.get_buffer())
49564956
self._srv().wait()
49574957

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ all-files=True
55

66
[metadata]
77
name = firebird-driver
8-
version = 1.5.0
8+
version = 1.5.1
99
description = Firebird driver
1010
long_description = file: README.rst
1111
long_description_content_type = text/x-rst; charset=UTF-8

0 commit comments

Comments
 (0)