mirror of
https://github.com/postgres/postgres.git
synced 2025-06-27 23:21:58 +03:00
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)
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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,
|
rule_evqual_string = heap_getattr(ruletuple, InvalidBuffer,
|
||||||
Anum_pg_rewrite_ev_qual,
|
Anum_pg_rewrite_ev_qual,
|
||||||
ruleTupdesc, &action_is_null) ;
|
ruleTupdesc, &action_is_null) ;
|
||||||
*instead_flag = (bool) heap_getattr(ruletuple, InvalidBuffer,
|
*instead_flag = !!heap_getattr(ruletuple, InvalidBuffer,
|
||||||
Anum_pg_rewrite_is_instead,
|
Anum_pg_rewrite_is_instead,
|
||||||
ruleTupdesc, &instead_is_null) ;
|
ruleTupdesc, &instead_is_null) ;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user