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.
2 parents 0bb5400 + 151d49d commit 4c8e6b1Copy full SHA for 4c8e6b1
1 file changed
src/firebird/driver/core.py
@@ -5723,9 +5723,11 @@ 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
- if data:
5727
- return data + '\n'
5728
- return None
+ # read_sized_string() returns lines ending with '\r ' (CR + space).
+ # Strip the trailing space to get proper '\r' line endings.
+ 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.
5733
0 commit comments