Host variables corresponding bytea type in ecpg

From: "Kato, Sho" <kato-sho(at)jp(dot)fujitsu(dot)com>
To: "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org>
Subject: Host variables corresponding bytea type in ecpg
Date: 2017-04-11 05:00:56
Message-ID: 25C1C6B2E7BE044889E4FE8643A58BA958616831@G01JPEXMBKW03
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Attachment Content-Type Size
fix_ecpg_host_variables_in_doc_v1.patch application/octet-stream 519 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Heikki Linnakangas 2017-04-11 05:10:23 Re: SCRAM authentication, take three
Previous Message Michael Paquier 2017-04-11 04:23:57 Re: Letting the client choose the protocol to use during a SASL exchange