Skip to content

Commit 60bca03

Browse files
committed
Fix page number size in Connection.info.get_info
1 parent 86f570b commit 60bca03

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [1.10.8] - 2024-12-23
8+
9+
### Fixed
10+
11+
- Fix page number size in `DatabaseInfoProvider3.get_info`.
12+
713
## [1.10.7] - 2024-12-15
814

915
### Changed

docs/changelog.txt

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
#########
44

5+
Version 1.10.8
6+
==============
7+
8+
- Fix page number size in `.DatabaseInfoProvider3.get_info`.
9+
510
Version 1.10.7
611
==============
712

src/firebird/driver/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@
6161
Server, Statement)
6262

6363
#: Current driver version, SEMVER string.
64-
__VERSION__ = '1.10.7'
64+
__VERSION__ = '1.10.8'

src/firebird/driver/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1299,8 +1299,8 @@ def get_info(self, info_code: DbInfoCode, page_number: int=None) -> Any:
12991299
self.response.clear()
13001300
request = bytes([info_code])
13011301
if info_code == DbInfoCode.PAGE_CONTENTS:
1302-
request += (8).to_bytes(2, 'little')
1303-
request += page_number.to_bytes(8, 'little')
1302+
request += (4).to_bytes(2, 'little')
1303+
request += page_number.to_bytes(4, 'little')
13041304
if len(self.response.raw) < self.page_size + 10:
13051305
self.response.resize(self.page_size + 10)
13061306
self._get_data(request)

0 commit comments

Comments
 (0)