Skip to content

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

Closed
@fdcastel

Description

@fdcastel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions