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
Re: Add missing const qualifier in ECPG |
Список | 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 по дате отправления: