diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-10-11 03:25:00 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-10-11 03:25:00 +0000 |
commit | b7559f94cd0db11f8b5dd9736580ef9e722f0d78 (patch) | |
tree | 2be2a4338a1c59bc250141a8638752fff9293ed5 /src | |
parent | 2663dfd94e48d4b9d834267b6f8cfbbe05d53665 (diff) | |
download | postgresql-b7559f94cd0db11f8b5dd9736580ef9e722f0d78.tar.gz postgresql-b7559f94cd0db11f8b5dd9736580ef9e722f0d78.zip |
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)
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/rewrite/rewriteSupport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/rewrite/rewriteSupport.c b/src/backend/rewrite/rewriteSupport.c index 1a05fc87b03..64f6b1e43a5 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.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) ; |