mirror of
https://github.com/postgres/postgres.git
synced 2025-07-17 06:41:09 +03:00
Mark multirange_constructor0() and multirange_constructor2() strict
These functions shouldn't receive null arguments: multirange_constructor0() doesn't have any arguments while multirange_constructor2() has a single array argument, which is never null. But mark them strict anyway for the sake of uniformity. Also, make checks for null arguments use elog() instead of ereport() as these errors should normally be never thrown. And adjust corresponding comments. Catversion is bumped. Reported-by: Peter Eisentraut Discussion: https://postgr.es/m/0f783a96-8d67-9e71-996b-f34a7352eeef%40enterprisedb.com
This commit is contained in:
@ -1844,7 +1844,7 @@ makeMultirangeConstructors(const char *name, Oid namespace,
|
||||
PROKIND_FUNCTION,
|
||||
false, /* security_definer */
|
||||
false, /* leakproof */
|
||||
false, /* isStrict */
|
||||
true, /* isStrict */
|
||||
PROVOLATILE_IMMUTABLE, /* volatility */
|
||||
PROPARALLEL_SAFE, /* parallel safety */
|
||||
argtypes, /* parameterTypes */
|
||||
@ -1929,7 +1929,7 @@ makeMultirangeConstructors(const char *name, Oid namespace,
|
||||
PROKIND_FUNCTION,
|
||||
false, /* security_definer */
|
||||
false, /* leakproof */
|
||||
false, /* isStrict */
|
||||
true, /* isStrict */
|
||||
PROVOLATILE_IMMUTABLE, /* volatility */
|
||||
PROPARALLEL_SAFE, /* parallel safety */
|
||||
argtypes, /* parameterTypes */
|
||||
|
Reference in New Issue
Block a user