Host variables corresponding bytea type in ecpg

Started by Kato, Shoabout 9 years ago4 messageshackers
Jump to latest
#1Kato, Sho
kato-sho@jp.fujitsu.com

Hi,

I tried to use the bytea type with ecpg, but the corresponding host variable was not described in the manual.

https://www.postgresql.org/docs/devel/static/ecpg-variables.html#ecpg-variables-type-mapping

According to the test code, the bytea type seems to correspond to char *.

src/interfaces/ecpg/test/sql/binary.pgc

I think that it is better to describe that the host variable corresponding to the bytea type is char * in the manual, but what about it?
I attach modified patch.

regards, Sho Kato.
--
Kato Sho

Attachments:

fix_ecpg_host_variables_in_doc_v1.patchapplication/octet-stream; name=fix_ecpg_host_variables_in_doc_v1.patchDownload+5-0
#2Michael Meskes
meskes@postgresql.org
In reply to: Kato, Sho (#1)
Re: Host variables corresponding bytea type in ecpg

I attach modified patch.

Thank you, committed.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#3Tom Lane
tgl@sss.pgh.pa.us
In reply to: Michael Meskes (#2)
Re: Host variables corresponding bytea type in ecpg

Michael Meskes <meskes@postgresql.org> writes:

I attach modified patch.

Thank you, committed.

I don't see a git push for this?

regards, tom lane

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers

#4Michael Meskes
meskes@postgresql.org
In reply to: Tom Lane (#3)
Re: Host variables corresponding bytea type in ecpg

I attach modified patch.

Thank you, committed.

I don't see a git push for this?

Oops, should be there now.

Michael
--
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL

--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers