]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix(c): use long for seconds to prevent IntervalLoader from overflowing
authorIacami Gevaerd <enapupe@gmail.com>
Tue, 16 Jan 2024 15:13:01 +0000 (12:13 -0300)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 27 Jan 2024 01:31:59 +0000 (01:31 +0000)
commitb7c7836877bed91263d38d693e6abfde41dbda09
treebafd79b28b5733aa36f47411b913f8d49490f3f7
parent40361687fcc9a62741153dc77c6e0fdb53d73ace
fix(c): use long for seconds to prevent IntervalLoader from overflowing

if the given interval is too long for a regular int it will become
negative an cause inconsistencies with the regular python implementation
psycopg_c/psycopg_c/types/datetime.pyx
tests/types/test_datetime.py