From 4ca28eb7c72e65e1a4f3a4e6b7d35a56e2b69d5c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sun, 10 Nov 2002 00:14:22 +0000 Subject: 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 --- doc/src/sgml/libpq.sgml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index d805b31378b..3714f7675a7 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -926,7 +926,7 @@ strings overlap. PQescapeBytea Escapes a binary string (bytea type) for use within an SQL query. - unsigned char *PQescapeBytea(unsigned char *from, + unsigned char *PQescapeBytea(const unsigned char *from, size_t from_length, size_t *to_length); @@ -970,7 +970,7 @@ strings overlap. Converts an escaped string representation of binary data into binary data - the reverse of PQescapeBytea. - unsigned char *PQunescapeBytea(unsigned char *from, size_t *to_length); + unsigned char *PQunescapeBytea(const unsigned char *from, size_t *to_length); The from parameter points to an escaped string -- cgit v1.2.3