FirebirdSQL / python3-driver

Firebird driver for Python that uses new Firebird API
https://www.firebirdsql.org/en/devel-python-driver/
MIT License
27 stars 10 forks source link

Pre-1970 dates causes `OverflowError` ("can't convert negative int to unsigned") #34

Closed fdcastel closed 7 months ago

fdcastel commented 9 months ago

Trying to pass datetime.date(1727, 4, 1) as a SQL DATE parameter causes this line of Cursor._pack_input() to raise a OverflowError("can't convert negative int to unsigned")

_util.encode_date(value) returns -48077 in this case.