]> 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:30:12 +0000 (01:30 +0000)
commit00319baa4806f63e4d32528cbad840a0386583f3
treed8b6fd499f15c3c2081497921dbde1fe5a3f4c9f
parent95b884c348e881e5f65616ae8356fbfc34caf451
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