Re: ecpg enhance patch

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: ecpg enhance patch
Дата
Msg-id 200006012203.SAA02738@candle.pha.pa.us
обсуждение исходный текст
Ответ на ecpg enhance patch  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Ответы Re: ecpg enhance patch  (Michael Meskes <meskes@postgresql.org>)
Re: ecpg enhance patch  (SAKAIDA Masaaki <sakaida@psn.co.jp>)
Список pgsql-hackers
Can I get a comment on this?  It has not been applied.  It appears to
apply to an older release.  New new file name is
interfaces/ecpg/lib/execute.c.



> Here is a patch that would enhance the efficiency in that skip strings
> which have been already checked. The patch was made by Kazuko
> Nakagawa. Michael, can you comment on this?
> 
> *** ecpglib.c.orig    Wed Dec 22 13:13:21 1999
> --- ecpglib.c    Wed Dec 22 13:37:32 1999
> ***************
> *** 398,403 ****
> --- 398,404 ----
>       PGresult   *results;
>       PGnotify   *notify;
>       struct variable *var;
> +     int    hostvarl = 0;
>   
>       copiedquery = ecpg_strdup(stmt->command, stmt->lineno);
>   
> ***************
> *** 569,575 ****
>               return false;
>   
>           strcpy(newcopy, copiedquery);
> !         if ((p = next_insert(newcopy)) == NULL)
>           {
>   
>               /*
> --- 570,576 ----
>               return false;
>   
>           strcpy(newcopy, copiedquery);
> !         if ((p = next_insert(newcopy+hostvarl)) == NULL)
>           {
>   
>               /*
> ***************
> *** 582,587 ****
> --- 583,589 ----
>           else
>           {
>               strcpy(p, tobeinserted);
> +             hostvarl = strlen(newcopy);
>   
>               /*
>                * The strange thing in the second argument is the rest of the
> 
> 
> ************
> 


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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problems with recent CVS versions and Solaris.
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Re: [BUGS] INET operators and NOT