handle a ECPG_bytea typo

From: "Wang, Shenhao" <wangsh(dot)fnst(at)cn(dot)fujitsu(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: handle a ECPG_bytea typo
Date: 2020-07-24 08:05:23
Message-ID: 07ac7dee1efc44f99d7f53a074420177@G08CNEXMBPEKD06.g08.fujitsu.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
0001-Fix-ECPGt_bytea-typo.patch application/octet-stream 2.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ajin Cherian 2020-07-24 08:13:26 Re: logical replication empty transactions
Previous Message Ajin Cherian 2020-07-24 07:40:17 Re: logical replication empty transactions