Host variables corresponding bytea type in ecpg

Started by Kato, Shoalmost 9 years ago4 messages
#1Kato, Sho
kato-sho@jp.fujitsu.com
1 attachment(s)

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
diff --git a/doc/src/sgml/ecpg.sgml b/doc/src/sgml/ecpg.sgml
index 564bd32..dead4c3 100644
--- a/doc/src/sgml/ecpg.sgml
+++ b/doc/src/sgml/ecpg.sgml
@@ -919,6 +919,11 @@ do
        <entry><type>boolean</type></entry>
        <entry><type>bool</type><footnote><para>declared in <filename>ecpglib.h</filename> if not native</para></footnote></entry>
       </row>
+
+      <row>
+       <entry><type>bytea</type></entry>
+       <entry><type>char *</type></entry>
+      </row>
      </tbody>
     </tgroup>
    </table>
#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