diff options
author | Peter Eisentraut <peter_e@gmx.net> | 2008-10-05 17:33:17 +0000 |
---|---|---|
committer | Peter Eisentraut <peter_e@gmx.net> | 2008-10-05 17:33:17 +0000 |
commit | 2cf8afe5d11377faaf5721b2c2f0089436abf704 (patch) | |
tree | 1ee6585ce9199d5c38b82408b85dc16e4326cbc7 /src/backend/utils/adt/bool.c | |
parent | d112ead20698ea75fff0e6350019426f3ce95679 (diff) | |
download | postgresql-2cf8afe5d11377faaf5721b2c2f0089436abf704.tar.gz postgresql-2cf8afe5d11377faaf5721b2c2f0089436abf704.zip |
Remove obsolete internal functions istrue, isfalse, isnottrue, isnotfalse,
nullvalue, nonvalue. A long time ago, these were used to implement the SQL
constructs IS TRUE, etc.
Diffstat (limited to 'src/backend/utils/adt/bool.c')
-rw-r--r-- | src/backend/utils/adt/bool.c | 65 |
1 files changed, 1 insertions, 64 deletions
diff --git a/src/backend/utils/adt/bool.c b/src/backend/utils/adt/bool.c index 4ba234c62c6..ce7967c5b86 100644 --- a/src/backend/utils/adt/bool.c +++ b/src/backend/utils/adt/bool.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/utils/adt/bool.c,v 1.43 2008/03/25 22:42:43 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/bool.c,v 1.44 2008/10/05 17:33:16 petere Exp $ * *------------------------------------------------------------------------- */ @@ -222,69 +222,6 @@ boolge(PG_FUNCTION_ARGS) } /* - * Per SQL92, istrue() and isfalse() should return false, not NULL, - * when presented a NULL input (since NULL is our implementation of - * UNKNOWN). Conversely isnottrue() and isnotfalse() should return true. - * Therefore, these routines are all declared not-strict in pg_proc - * and must do their own checking for null inputs. - * - * Note we don't need isunknown() and isnotunknown() functions, since - * nullvalue() and nonnullvalue() will serve. - */ - -Datum -istrue(PG_FUNCTION_ARGS) -{ - bool b; - - if (PG_ARGISNULL(0)) - PG_RETURN_BOOL(false); - - b = PG_GETARG_BOOL(0); - - PG_RETURN_BOOL(b); -} - -Datum -isfalse(PG_FUNCTION_ARGS) -{ - bool b; - - if (PG_ARGISNULL(0)) - PG_RETURN_BOOL(false); - - b = PG_GETARG_BOOL(0); - - PG_RETURN_BOOL(!b); -} - -Datum -isnottrue(PG_FUNCTION_ARGS) -{ - bool b; - - if (PG_ARGISNULL(0)) - PG_RETURN_BOOL(true); - - b = PG_GETARG_BOOL(0); - - PG_RETURN_BOOL(!b); -} - -Datum -isnotfalse(PG_FUNCTION_ARGS) -{ - bool b; - - if (PG_ARGISNULL(0)) - PG_RETURN_BOOL(true); - - b = PG_GETARG_BOOL(0); - - PG_RETURN_BOOL(b); -} - -/* * boolean-and and boolean-or aggregates. */ |