]> git.ipfire.org Git - thirdparty/psycopg.git/commit
fix: produce consistent error messages on timestamp overflow
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 8 Jun 2022 21:26:41 +0000 (23:26 +0200)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 8 Jun 2022 23:03:01 +0000 (01:03 +0200)
commit536a43155ad1988ece08cebaece71021663e253e
treeacb75f079cb85a80615b63bfc796b404d55b9f26
parente63406c65b94ca4c21d41b65787a74eea97ea234
fix: produce consistent error messages on timestamp overflow

- State if the date is too small or too large, not just "not supported".
- Use similar messages in text and binary format.

See #315
psycopg/psycopg/types/datetime.py
psycopg_c/psycopg_c/types/datetime.pyx
tests/types/test_datetime.py