diff --git a/CHANGELOG.md b/CHANGELOG.md index fdbeda4..75fd11a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.10.8] - 2024-12-23 + +### Fixed + +- Fix page number size in `DatabaseInfoProvider3.get_info`. + ## [1.10.7] - 2024-12-15 ### Changed diff --git a/docs/changelog.txt b/docs/changelog.txt index c4b3817..cdc4e44 100644 --- a/docs/changelog.txt +++ b/docs/changelog.txt @@ -2,6 +2,11 @@ Changelog ######### +Version 1.10.8 +============== + +- Fix page number size in `.DatabaseInfoProvider3.get_info`. + Version 1.10.7 ============== diff --git a/src/firebird/driver/__init__.py b/src/firebird/driver/__init__.py index 6e4dddf..f1d43b2 100644 --- a/src/firebird/driver/__init__.py +++ b/src/firebird/driver/__init__.py @@ -61,4 +61,4 @@ Server, Statement) #: Current driver version, SEMVER string. -__VERSION__ = '1.10.7' +__VERSION__ = '1.10.8' diff --git a/src/firebird/driver/core.py b/src/firebird/driver/core.py index 35594b6..a535d2e 100644 --- a/src/firebird/driver/core.py +++ b/src/firebird/driver/core.py @@ -1299,8 +1299,8 @@ def get_info(self, info_code: DbInfoCode, page_number: int=None) -> Any: self.response.clear() request = bytes([info_code]) if info_code == DbInfoCode.PAGE_CONTENTS: - request += (8).to_bytes(2, 'little') - request += page_number.to_bytes(8, 'little') + request += (4).to_bytes(2, 'little') + request += page_number.to_bytes(4, 'little') if len(self.response.raw) < self.page_size + 10: self.response.resize(self.page_size + 10) self._get_data(request)