git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 1437824) | patch
Fix format_type() to restore its old behavior.
Thu, 1 Mar 2018 16:37:46 +0000 (11:37 -0500)
Thu, 1 Mar 2018 16:37:46 +0000 (11:37 -0500)
commit 8f72a5704854d292065886eb47ba18fbd504113e
Fix format_type() to restore its old behavior.

Commit a26116c6c accidentally changed the behavior of the SQL format_type()
function while refactoring. For the reasons explained in that function's
comment, a NULL typemod argument should behave differently from a -1
argument. Since we've managed to break this, add a regression test
memorializing the intended behavior.

In passing, be consistent about the type of the "flags" parameter.

Noted by Rushabh Lathia, though I revised the patch some more.

Discussion: https://postgr.es/m/CAGPqQf3RB2q-d2Awp_-x-Ur6aOxTUwnApt-vm-iTtceZxYnePg@mail.gmail.com
contrib/postgres_fdw/deparse.c diff | blob | blame | history
src/backend/utils/adt/format_type.c diff | blob | blame | history
src/test/regress/expected/create_type.out diff | blob | blame | history
src/test/regress/sql/create_type.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /