Skip site navigation (1) Skip section navigation (2)

Re: [PATCHES] ecpg sqlca.h bug

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Rene Hogendoorn <hogend(at)nlr(dot)nl>
Cc: pgsql-patches(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: [PATCHES] ecpg sqlca.h bug
Date: 1999-11-23 18:49:18
Message-ID: 199911231849.NAA07994@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-bugs
> ------------------------------------------------
> 
> The ecpg 'include/sqlca.h' header file has '#endif' and '#ifdef __cplusplus'
> reversed, causing C++ compilations to fail
> 



Patch applied to both current and stable trees.


> 
> 
> Please describe a way to repeat the problem.   Please try to provide a
> concise reproducible example, if at all possible: 
> ----------------------------------------------------------------------
> 
> 
> 
> 
> 
> If you know how this problem might be fixed, list the solution below:
> ---------------------------------------------------------------------
> 
> diff -c /usr/tools/src/postgresql-6.5.3/src/interfaces/ecpg/include/sqlca.h.orig /usr/tools/src/postgresql-6.5.3/src/interfaces/ecpg/include/sqlca.h
> *** /usr/tools/src/postgresql-6.5.3/src/interfaces/ecpg/include/sqlca.h.orig    Tue Sep  1 06:39:42 1998
> --- /usr/tools/src/postgresql-6.5.3/src/interfaces/ecpg/include/sqlca.h Tue Nov 23 11:28:02 1999
> ***************
> *** 43,51 ****
>   
>          extern struct sqlca sqlca;
>   
> - #endif
> - 
>   #ifdef __cplusplus
>   }
>   
>   #endif
> --- 43,50 ----
>   
>          extern struct sqlca sqlca;
>   
>   #ifdef __cplusplus
>   }
> + #endif
>   
>   #endif
> 
> -- 
> 
> R. A. Hogendoorn                                       E-mail: hogend(at)nlr(dot)nl
> Information and Communication Technology Division      Tel. +31-527-24-8367 
> National Aerospace Laboratory, The Netherlands         Fax. +31-527-24-8210 
> 
> ************
> 
> 


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist(at)candle(dot)pha(dot)pa(dot)us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-bugs by date

Next:From: Bruce MomjianDate: 1999-11-23 19:27:31
Subject: Re: [PATCHES] ecpg sqlca.h bug
Previous:From: Bastian KleineidamDate: 1999-11-23 16:30:46
Subject: installation glitches on Linux

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group