Re: ecpg "problem" ...

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: ecpg "problem" ...
Date: 2002-11-14 11:07:25
Message-ID: 20021114110725.GE2147@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)Fam-Meskes(dot)De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Naeslund(f) 2002-11-14 11:14:41 Re: RC1?
Previous Message Barry Lind 2002-11-14 10:56:43 Re: JDBC access is broken in 7.3 beta