handle a ECPG_bytea typo

Wang, Shenhao <wangsh.fnst@cn.fujitsu.com>

From: "Wang, Shenhao" <wangsh.fnst@cn.fujitsu.com>
To: "pgsql-hackers@lists.postgresql.org" <pgsql-hackers@lists.postgresql.org>
Date: 2020-07-24T08:05:23Z
Lists: pgsql-hackers

Attachments

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



Commits

  1. Fix handling of structure for bytea data type in ECPG