We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78c79f1 commit 151d49dCopy full SHA for 151d49d
1 file changed
src/firebird/driver/core.py
@@ -5723,6 +5723,10 @@ def readline_timed(self, timeout: int) -> str | Sentinel | None:
5723
data = self.response.read_sized_string(encoding=self.encoding, errors=self.encoding_errors)
5724
if self.response.get_tag() == SrvInfoCode.TIMEOUT:
5725
return TIMEOUT
5726
+ # read_sized_string() returns lines ending with '\r ' (CR + space).
5727
+ # Strip the trailing space to get proper '\r' line endings.
5728
+ if data and data.endswith('\r '):
5729
+ data = data[:-1] # Remove space, keep '\r'
5730
return data if data else None
5731
def readline(self) -> str | None:
5732
"""Get next line of textual output from last service query.
0 commit comments