]> git.ipfire.org Git - thirdparty/psycopg.git/commit
refactor: `TypeInfo.alt_name` renamed to `regtype`
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 20 Mar 2022 15:21:40 +0000 (16:21 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 10 May 2022 17:13:26 +0000 (19:13 +0200)
commitee0359f37d981f0d77eebdd45e1b70d51e28d93e
tree3943ed047f044fbf086ebb27c5072fcf95e4e2dd
parentcb8390e2541b1ae565fac06ce2eb54f4c5cacdfb
refactor: `TypeInfo.alt_name` renamed to `regtype`

This has now acquired a precise meaning: it is the name of the type as
SQL snippet (it may contain invalid names, which get quoted, or a schema
name). It can be included literally in a query to make a valid cast.

The previous name wasn't documented and wasn't part of any public API so
we can probably rename it without much problem.
psycopg/psycopg/_typeinfo.py
psycopg/psycopg/postgres.py
psycopg/psycopg/sql.py
tests/test_typeinfo.py
tools/update_oids.py