From 116d2bba7eeaf25c544bc187e3ad2a8677a9a22c Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Tue, 19 Jun 2001 22:39:12 +0000 Subject: Add IS UNKNOWN, IS NOT UNKNOWN boolean tests, fix the existing boolean tests to return the correct results per SQL9x when given NULL inputs. Reimplement these tests as well as IS [NOT] NULL to have their own expression node types, instead of depending on special functions. From Joe Conway, with a little help from Tom Lane. --- src/include/parser/parse_coerce.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/include/parser/parse_coerce.h') diff --git a/src/include/parser/parse_coerce.h b/src/include/parser/parse_coerce.h index f81a3be8307..1f508b1eae0 100644 --- a/src/include/parser/parse_coerce.h +++ b/src/include/parser/parse_coerce.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: parse_coerce.h,v 1.28 2001/05/22 16:37:17 petere Exp $ + * $Id: parse_coerce.h,v 1.29 2001/06/19 22:39:12 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -136,6 +136,8 @@ extern Node *coerce_type(ParseState *pstate, Node *node, Oid inputTypeId, extern Node *coerce_type_typmod(ParseState *pstate, Node *node, Oid targetTypeId, int32 atttypmod); +extern bool coerce_to_boolean(ParseState *pstate, Node **pnode); + extern Oid select_common_type(List *typeids, const char *context); extern Node *coerce_to_common_type(ParseState *pstate, Node *node, Oid targetTypeId, -- cgit v1.2.3