FirebirdSQL / fdb

Firebird Driver for Python
https://www.firebirdsql.org/en/devel-python-driver/
Other
60 stars 26 forks source link

Removed unexpected bytes_read passed to ctypes.byref #1

Closed bkcsfi closed 6 years ago

bkcsfi commented 6 years ago

When reading a blob that is less than __streamed_blob_treshold, existing code attempts to read the blob 'inline' w/o using BlobReader, however the inline read code, which is more than 6 years old, incorrectly passed two arguments to ctypes.byref

I discovered this when back-porting fdb to python 2.3 (don't ask..)

bkcsfi commented 6 years ago

please disregard this, ctypes.byref gained an offset argument in a later version of ctypes than what is supported in python 2.3