From: Marc G. Fournier Date: Fri, 11 Oct 1996 03:26:18 +0000 (+0000) Subject: This change should have no practical effect but it is the more X-Git-Tag: PG95-1_09~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2cc3c09e456a52f79affc87dbc70841f2dc9b2bc;p=thirdparty%2Fpostgresql.git This change should have no practical effect but it is the more correct way to do this. Theoretically you could have a NULL pointer that isn't represented internally as all 0 bits. This guarantees that it convert correctly. Submitted by: darcy@druid.com (D'Arcy J.M. Cain) --- diff --git a/src/backend/rewrite/rewriteSupport.c b/src/backend/rewrite/rewriteSupport.c index 1a05fc87b03..6c1f9f34c37 100644 --- a/src/backend/rewrite/rewriteSupport.c +++ b/src/backend/rewrite/rewriteSupport.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.1.1.1 1996/07/09 06:21:52 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/rewrite/rewriteSupport.c,v 1.1.1.1.2.1 1996/10/11 03:26:18 scrappy Exp $ * *------------------------------------------------------------------------- */ @@ -65,7 +65,7 @@ RuleIdGetActionInfo(Oid ruleoid, bool *instead_flag, Query **parseTrees) rule_evqual_string = heap_getattr(ruletuple, InvalidBuffer, Anum_pg_rewrite_ev_qual, ruleTupdesc, &action_is_null) ; - *instead_flag = (bool) heap_getattr(ruletuple, InvalidBuffer, + *instead_flag = !!heap_getattr(ruletuple, InvalidBuffer, Anum_pg_rewrite_is_instead, ruleTupdesc, &instead_is_null) ;