* back to source text
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.154 2003/09/15 20:03:37 petere Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/ruleutils.c,v 1.155 2003/09/29 18:55:56 momjian Exp $
*
* This software is copyrighted by Jan Wieck - Hamburg.
*
*/
appendStringInfo(&buf, "CHECK ");
+ /* If we're pretty-printing we need to add brackets */
+ if (prettyFlags != 0)
+ appendStringInfo(&buf, "(");
+
/* Fetch constraint source */
val = heap_getattr(tup, Anum_pg_constraint_conbin,
RelationGetDescr(conDesc), &isnull);
/* Append the constraint source */
appendStringInfoString(&buf, consrc);
+ /* If we're pretty-printing we need to add brackets */
+ if (prettyFlags != 0)
+ appendStringInfo(&buf, ")");
+
break;
}
default: