Thread

  1. ecpg sqlca.h bug

    Rene Hogendoorn <hogend@nlr.nl> — 1999-11-23T15:31:01Z

    ============================================================================
                            POSTGRESQL BUG REPORT
    ============================================================================
    
    
    Your name		:	Rene Hogendoorn
    Your email address	:	hogend@nlr.nl
    
    
    System Configuration
    ---------------------
      Architecture (example: Intel Pentium)  	: Intel PII / dec alpha
    
      Operating System (example: Linux 2.0.26 ELF) 	: Redhat 6.1 / DUNIX 4.0f
    
      PostgreSQL version (example: PostgreSQL-6.5.3): PostgreSQL-6.5.3 
    
      Compiler used (example:  gcc 2.8.0)		: egcs 1.1.2 / gcc 2.7.2.2
    
    
    Please enter a FULL description of your problem:
    ------------------------------------------------
    
    The ecpg 'include/sqlca.h' header file has '#endif' and '#ifdef __cplusplus'
    reversed, causing C++ compilations to fail
    
    
    
    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@nlr.nl
    Information and Communication Technology Division      Tel. +31-527-24-8367 
    National Aerospace Laboratory, The Netherlands         Fax. +31-527-24-8210 
    
    
  2. Re: [PATCHES] ecpg sqlca.h bug

    Bruce Momjian <pgman@candle.pha.pa.us> — 1999-11-23T18:49:18Z

    > ------------------------------------------------
    > 
    > 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@nlr.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@candle.pha.pa.us            |  (610) 853-3000
      +  If your life is a hard drive,     |  830 Blythe Avenue
      +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026