summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-10-11 03:26:18 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-10-11 03:26:18 +0000
commit2cc3c09e456a52f79affc87dbc70841f2dc9b2bc (patch)
treea2ff79039522b87615da74f8222c5d3a6be8e288
parent73010f5044f24d91f7d625714d17b62bbd494b53 (diff)
downloadpostgresql-2cc3c09e456a52f79affc87dbc70841f2dc9b2bc.tar.gz
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)
-rw-r--r--src/backend/rewrite/rewriteSupport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/rewrite/rewriteSupport.c b/src/backend/rewrite/rewriteSupport.c
index 1a05fc87b0..6c1f9f34c3 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) ;