Re: Add missing const qualifier in ECPG

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Add missing const qualifier in ECPG
Дата
Msg-id 200511130014.02521.peter_e@gmx.net
обсуждение исходный текст
Ответ на Add missing const qualifier in ECPG  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Ответы Re: Add missing const qualifier in ECPG  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Re: Add missing const qualifier in ECPG  (Qingqing Zhou <zhouqq@cs.toronto.edu>)
Список pgsql-patches
Qingqing Zhou wrote:
> ***************
> *** 149,155 ****
>       if (!(*stmt = (struct statement *) ECPGalloc(sizeof(struct
> statement), lineno))) return false;
>
> !     (*stmt)->command = query;
>       (*stmt)->connection = connection;
>       (*stmt)->lineno = lineno;
>       (*stmt)->compat = compat;
> --- 150,156 ----
>       if (!(*stmt = (struct statement *) ECPGalloc(sizeof(struct
> statement), lineno))) return false;
>
> !     (*stmt)->command = (char *)query;
>       (*stmt)->connection = connection;
>       (*stmt)->lineno = lineno;
>       (*stmt)->compat = compat;

This sort of "cheating" should be avoided.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: Qingqing Zhou
Дата:
Сообщение: Add missing const qualifier in ECPG
Следующее
От: Qingqing Zhou
Дата:
Сообщение: Re: Add missing const qualifier in ECPG