summaryrefslogtreecommitdiff
path: root/src/common/exec.c
diff options
context:
space:
mode:
authorTom Lane2016-02-05 04:03:10 +0000
committerTom Lane2016-02-05 04:03:37 +0000
commit6819514fca22f8554edcab6e4d0402b0221f03bb (patch)
treee78c772e621f3f83804d76d024fdbdf80943a7de /src/common/exec.c
parentd0cd7bda97a626049aa7d247374909c52399c413 (diff)
Add num_nulls() and num_nonnulls() to count NULL arguments.
An example use-case is "CHECK(num_nonnulls(a,b,c) = 1)" to assert that exactly one of a,b,c isn't NULL. The functions are variadic, so they can also be pressed into service to count the number of null or nonnull elements in an array. Marko Tiikkaja, reviewed by Pavel Stehule
Diffstat (limited to 'src/common/exec.c')
0 files changed, 0 insertions, 0 deletions