33 *back to source text
44 *
55 * IDENTIFICATION
6- * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.78 2001/06/19 22:39:12 tgl Exp $
6+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.79 2001/07/10 00:02:02 tgl Exp $
77 *
88 * This software is copyrighted by Jan Wieck - Hamburg.
99 *
@@ -1951,15 +1951,15 @@ get_rule_expr(Node *node, deparse_context *context)
19511951{
19521952NullTest * ntest = (NullTest * )node ;
19531953
1954- appendStringInfo (buf ,"(( " );
1954+ appendStringInfo (buf ,"(" );
19551955get_rule_expr (ntest -> arg ,context );
19561956switch (ntest -> nulltesttype )
19571957 {
19581958case IS_NULL :
1959- appendStringInfo (buf ,") IS NULL)" );
1959+ appendStringInfo (buf ," IS NULL)" );
19601960break ;
19611961case IS_NOT_NULL :
1962- appendStringInfo (buf ,") IS NOT NULL)" );
1962+ appendStringInfo (buf ," IS NOT NULL)" );
19631963break ;
19641964default :
19651965elog (ERROR ,"get_rule_expr: unexpected nulltesttype %d" ,
@@ -1972,27 +1972,27 @@ get_rule_expr(Node *node, deparse_context *context)
19721972{
19731973BooleanTest * btest = (BooleanTest * )node ;
19741974
1975- appendStringInfo (buf ,"(( " );
1975+ appendStringInfo (buf ,"(" );
19761976get_rule_expr (btest -> arg ,context );
19771977switch (btest -> booltesttype )
19781978 {
19791979case IS_TRUE :
1980- appendStringInfo (buf ,") IS TRUE)" );
1980+ appendStringInfo (buf ," IS TRUE)" );
19811981break ;
19821982case IS_NOT_TRUE :
1983- appendStringInfo (buf ,") IS NOT TRUE)" );
1983+ appendStringInfo (buf ," IS NOT TRUE)" );
19841984break ;
19851985case IS_FALSE :
1986- appendStringInfo (buf ,") IS FALSE)" );
1986+ appendStringInfo (buf ," IS FALSE)" );
19871987break ;
19881988case IS_NOT_FALSE :
1989- appendStringInfo (buf ,") IS NOT FALSE)" );
1989+ appendStringInfo (buf ," IS NOT FALSE)" );
19901990break ;
19911991case IS_UNKNOWN :
1992- appendStringInfo (buf ,") IS UNKNOWN)" );
1992+ appendStringInfo (buf ," IS UNKNOWN)" );
19931993break ;
19941994case IS_NOT_UNKNOWN :
1995- appendStringInfo (buf ,") IS NOT UNKNOWN)" );
1995+ appendStringInfo (buf ," IS NOT UNKNOWN)" );
19961996break ;
19971997default :
19981998elog (ERROR ,"get_rule_expr: unexpected booltesttype %d" ,