Re: ecpg "problem" ... - Mailing list pgsql-hackers

From Michael Meskes
Subject Re: ecpg "problem" ...
Date
Msg-id 20021114110725.GE2147@feivel.credativ.de
Whole thread Raw
In response to ecpg "problem" ...  ("Marc G. Fournier" <scrappy@hub.org>)
List pgsql-hackers
On Tue, Nov 12, 2002 at 02:58:17PM -0400, Marc G. Fournier wrote:
> 
> 
>         if (ic_flag == 1) {
>         /*only select those non-IC/Spyder nodes that has full update set*/
>         EXEC SQL DECLARE full_dyn_node CURSOR FOR
>                  SELECT node_name FROM NODE
>                  WHERE dynamic_community = 'f' AND ic_flag='n' AND machine_type!=22
>                  AND node_id != 0 AND NODE_NAME != :nodename;
>         }
>         else{
>         EXEC SQL DECLARE full_dyn_node CURSOR FOR
>                  SELECT node_name FROM NODE
>                  WHERE dynamic_community = 'f'
>                  AND node_id != 0 AND NODE_NAME != :nodename; (line#493)
>         }
> ...
> since its envelop'd in an if/else clause, shouldn't it work?

By definition no. You could compare it to C preprocessor commands like
#define.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!


pgsql-hackers by date:

Previous
From: Barry Lind
Date:
Subject: Re: [PATCHES] JDBC access is broken in 7.3 beta
Next
From: "Magnus Naeslund(f)"
Date:
Subject: Re: RC1?