From 7cf952e7b4ad4d0d603ad13ab91f55c3ec41affe Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 23 Mar 2001 04:49:58 +0000 Subject: Fix comments that were mis-wrapped, for Tom Lane. --- contrib/spi/refint.c | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'contrib/spi') diff --git a/contrib/spi/refint.c b/contrib/spi/refint.c index ea8851816f..dcc9f54daf 100644 --- a/contrib/spi/refint.c +++ b/contrib/spi/refint.c @@ -399,19 +399,29 @@ check_foreign_key(PG_FUNCTION_ARGS) { relname = args2[0]; - /* - * For 'R'estrict action we construct SELECT query - SELECT 1 - * FROM _referencing_relation_ WHERE Fkey1 = $1 [AND Fkey2 = - * $2 [...]] - to check is tuple referenced or not. + /*--------- + * For 'R'estrict action we construct SELECT query: + * + * SELECT 1 + * FROM _referencing_relation_ + * WHERE Fkey1 = $1 [AND Fkey2 = $2 [...]] + * + * to check is tuple referenced or not. + *--------- */ if (action == 'r') sprintf(sql, "select 1 from %s where ", relname); - /* - * For 'C'ascade action we construct DELETE query - DELETE - * FROM _referencing_relation_ WHERE Fkey1 = $1 [AND Fkey2 = - * $2 [...]] - to delete all referencing tuples. + /*--------- + * For 'C'ascade action we construct DELETE query + * + * DELETE + * FROM _referencing_relation_ + * WHERE Fkey1 = $1 [AND Fkey2 = $2 [...]] + * + * to delete all referencing tuples. + *--------- */ /* -- cgit v1.2.1