Re: ECPG failed and Postmaster getting bigger in using perl Pg - Mailing list pgsql-interfaces

From Michael Meskes
Subject Re: ECPG failed and Postmaster getting bigger in using perl Pg
Date
Msg-id 20000510094222.A2799@fam-meskes.de
Whole thread Raw
In response to Re: ECPG failed and Postmaster getting bigger in using perl Pg  (SAKAIDA Masaaki <sakaida@psn.co.jp>)
Responses Re: ECPG failed and Postmaster getting bigger in using perl Pg  (SAKAIDA Masaaki <sakaida@psn.co.jp>)
Re: ECPG failed and Postmaster getting bigger in using perl Pg  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-interfaces
On Wed, May 10, 2000 at 03:13:56PM +0900, SAKAIDA Masaaki wrote:
>   This is a bug of pre-processor in PostgreSQL-7.0RC5.

ARGH!

>   The solutions of the bug:
> 
>  1. Don't use a struct host variable.

Not really a solution.

>  2. Apply the next patch.
> 
> *** postgresql-7.0RC5/src/interfaces/ecpg/preproc/type.c.orig    Wed May 10 14:45:55 2000
> --- postgresql-7.0RC5/src/interfaces/ecpg/preproc/type.c    Wed May 10 14:46:43 2000
> ***************
> *** 198,203 ****
> --- 198,209 ----
>   void
>   ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * typ, const char *ind_name, struct ECPGtype * ind_typ,
constchar *prefix, const char *ind_prefix)
 
>   {
> +     if (ind_typ == NULL)
> +     {
> +         ind_typ = &ecpg_no_indicator;
> +         ind_name = "no_indicator";
> +     }
> + 

This has been in before. I have no idea where it got lost. To make matters
worse this has not made it into the archive before 7.0 was released right?

Michael
-- 
Michael Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael@Fam-Meskes.De           | Use PostgreSQL!


pgsql-interfaces by date:

Previous
From: SAKAIDA Masaaki
Date:
Subject: Re: ECPG failed and Postmaster getting bigger in using perl Pg
Next
From: Michael Meskes
Date:
Subject: Re: Re: [DOCS] looking for doc for ecpg