1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-11 20:28:21 +03:00

I just discovered, that there is missing a const when passing a buffer

to  PQescapeBytea and PQunescapeBytea. I fixed it and tried to create a
usable  diff (I'm not so familar to diff).

Tommi M?kitalo
This commit is contained in:
Bruce Momjian
2002-11-10 00:14:22 +00:00
parent 3eabc4490e
commit 4ca28eb7c7
3 changed files with 11 additions and 11 deletions

View File

@ -1,5 +1,5 @@
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.99 2002/11/08 05:03:11 momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/libpq.sgml,v 1.100 2002/11/10 00:14:22 momjian Exp $
-->
<chapter id="libpq">
@ -926,7 +926,7 @@ strings overlap.
<function>PQescapeBytea</function>
Escapes a binary string (<type>bytea</type> type) for use within an SQL query.
<synopsis>
unsigned char *PQescapeBytea(unsigned char *from,
unsigned char *PQescapeBytea(const unsigned char *from,
size_t from_length,
size_t *to_length);
</synopsis>
@ -970,7 +970,7 @@ strings overlap.
Converts an escaped string representation of binary data into binary
data - the reverse of <function>PQescapeBytea</function>.
<synopsis>
unsigned char *PQunescapeBytea(unsigned char *from, size_t *to_length);
unsigned char *PQunescapeBytea(const unsigned char *from, size_t *to_length);
</synopsis>
The <parameter>from</parameter> parameter points to an escaped string