From ede9b68e03ec9288e85b2847b27793782c0cf5da Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 31 Oct 2003 00:18:55 +0000 Subject: Use Tcl ByteArray objects to avoid unwanted character set translation in libpgtcl's lo_read/lo_write commands. Also, deal correctly with failure return from lo_read(). ljb and Tom Lane. --- doc/src/sgml/libpgtcl.sgml | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpgtcl.sgml b/doc/src/sgml/libpgtcl.sgml index c0ffddebeea..f3f0112c4e3 100644 --- a/doc/src/sgml/libpgtcl.sgml +++ b/doc/src/sgml/libpgtcl.sgml @@ -1,5 +1,5 @@ @@ -1217,7 +1217,7 @@ pg_lo_creat conn mode conn - The handle of a database connection in which to create the large + The handle of a connection to the database in which to create the large object. @@ -1284,8 +1284,8 @@ pg_lo_open conn loid mo - The handle of a database connection in which the large object to - be opened exists. + The handle of a connection to the database in which the large object + exists. @@ -1354,7 +1354,7 @@ pg_lo_close conn descriptor conn - The handle of a database connection in which the large object + The handle of a connection to the database in which the large object exists. @@ -1417,7 +1417,7 @@ pg_lo_read conn descriptor conn - The handle of a database connection in which the large object + The handle of a connection to the database in which the large object exists. @@ -1458,7 +1458,9 @@ pg_lo_read conn descriptor Return Value - None + The number of bytes actually read is returned; this could be less than + the number requested if the end of the large object is reached first. + In event of an error, the return value is negative. @@ -1499,7 +1501,7 @@ pg_lo_write conn descriptor conn - The handle of a database connection in which the large object + The handle of a connection to the database in which the large object exists. @@ -1519,7 +1521,8 @@ pg_lo_write conn descriptor buf - The string to write to the large object (not a variable name). + The string to write to the large object (not a variable name, + but the value itself). @@ -1528,7 +1531,8 @@ pg_lo_write conn descriptor len - The maximum number of bytes to write. + The maximum number of bytes to write. The number written will + be the smaller of this value and the length of the string. @@ -1539,7 +1543,9 @@ pg_lo_write conn descriptor Return Value - None + The number of bytes actually written is returned; this will ordinarily + be the same as the number requested. + In event of an error, the return value is negative. @@ -1580,7 +1586,7 @@ pg_lo_lseek conn descriptor conn - The handle of a database connection in which the large object + The handle of a connection to the database in which the large object exists. @@ -1664,7 +1670,7 @@ pg_lo_tell conn descriptor - The handle of a database connection in which the large object + The handle of a connection to the database in which the large object exists. @@ -1727,7 +1733,7 @@ pg_lo_unlink conn loid conn - The handle of a database connection in which the large object + The handle of a connection to the database in which the large object exists. @@ -1788,7 +1794,7 @@ pg_lo_import conn filename conn - The handle of a database connection in which to create the large + The handle of a connection to the database in which to create the large object. @@ -1858,7 +1864,7 @@ pg_lo_export conn loid conn - The handle of a database connection in which the large object + The handle of a connection to the database in which the large object exists. -- cgit v1.2.3