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" <wangsh.fnst@cn.fujitsu.com>)
Ответы Re: handle a ECPG_bytea typo  (Michael Paquier <michael@paquier.xyz>)
Список pgsql-hackers
On Fri, Jul 24, 2020 at 1:35 PM Wang, Shenhao
<wangsh.fnst@cn.fujitsu.com> 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
Дата:
Сообщение: Re: Parallel worker hangs while handling errors.
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Row estimates for empty tables