]> granicus.if.org Git - postgresql/commit
Change various deparsing functions to return NULL for invalid input.
authorRobert Haas <rhaas@postgresql.org>
Tue, 26 Jul 2016 20:07:02 +0000 (16:07 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 26 Jul 2016 20:07:02 +0000 (16:07 -0400)
commit976b24fb477464907737d28cdf18e202fa3b1a5b
treed1e0bdb50e5bc4db9e5fb138171427780310409e
parentfe5e3fce798dccf3f298b65c5d9a132e9646712a
Change various deparsing functions to return NULL for invalid input.

Previously, some functions returned various fixed strings and others
failed with a cache lookup error.  Per discussion, standardize on
returning NULL.  Although user-exposed "cache lookup failed" error
messages might normally qualify for bug-fix treatment, no back-patch;
the risk of breaking user code which is accustomed to the current
behavior seems too high.

Michael Paquier
src/backend/utils/adt/ruleutils.c
src/test/regress/expected/rules.out
src/test/regress/sql/rules.sql