OSDN Git Service

This change should have no practical effect but it is the more
authorMarc G. Fournier <scrappy@hub.org>
Fri, 11 Oct 1996 03:25:00 +0000 (03:25 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Fri, 11 Oct 1996 03:25:00 +0000 (03:25 +0000)
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)

src/backend/rewrite/rewriteSupport.c

index 1a05fc8..64f6b1e 100644 (file)
@@ -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.2 1996/10/11 03:25:00 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) ;