Re: handle a ECPG_bytea typo

Поиск
Список
Период
Сортировка
Искать
От
vignesh C
Тема
Re: handle a ECPG_bytea typo
Дата
Msg-id
CALDaNm1CSqdgOOU_kixrnJL0Rf0K4ZUbMzts1RCimF6S=vcE3A@mail.gmail.com
Ответ на
handle a ECPG_bytea typo (Wang, Shenhao)
Список
Дерево обсуждения
handle a ECPG_bytea typo "Wang, Shenhao" <wangsh.fnst@cn.fujitsu.com>
Re: handle a ECPG_bytea typo vignesh C <vignesh21@gmail.com>
Re: handle a ECPG_bytea typo Michael Paquier <michael@paquier.xyz>
Re: handle a ECPG_bytea typo Michael Paquier <michael@paquier.xyz>
On Fri, Jul 24, 2020 at 1:35 PM Wang, Shenhao
 wrote:
>
> Hi, hackers
>
> The source looks like:
>
>         case ECPGt_bytea:
>         {
>                 struct ECPGgeneric_varchar *variable =
>                 (struct ECPGgeneric_varchar *) (var->value);
>
>                 ......
>         }
>
> I think the developer intend to use struct ECPGgeneric_bytea instead of struct ECPGgeneric_varchar
>
> Is this thoughts right?
>
> I have wrote a patch to fix this typo

I felt the changes look correct. The reason it might be working
earlier is because the structure members are the same for both the
data structures ECPGgeneric_bytea & ECPGgeneric_varchar.

Regards,
Vignesh
EnterpriseDB: http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления
От: vignesh C
Дата:
От: Pavel Stehule
Дата:
FAQ