]> git.ipfire.org Git - thirdparty/psycopg.git/commit
Use type-specific range subclasses to avoid the dump upgrade mechanism
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Wed, 23 Jun 2021 16:04:09 +0000 (17:04 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Fri, 25 Jun 2021 15:16:26 +0000 (16:16 +0100)
commitf45d4e049ab95bb56b6a967e43ecce05ac7de42e
tree837590cb14098673115944e41918bed320886724
parent7fe0896166e352b1baac4525a70ab805f4e9bbc4
Use type-specific range subclasses to avoid the dump upgrade mechanism

This allows binary dump of empty ranges, for which the type can be
inferred. In normal dumping these are dumped in text format with unknown
oid but that would break binary copy.
psycopg3/psycopg3/types/__init__.py
psycopg3/psycopg3/types/range.py
tests/fix_faker.py
tests/types/test_range.py