From 2296e299986aece2cdf0a4bff273bc505fb81368 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 23 Jun 2008 21:10:49 +0000 Subject: Add libpq comment about how to determine the format used for passing binary values. Add comments to libpq C function for parameter passing. --- doc/src/sgml/libpq.sgml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 006c81f3077..629e501b8ac 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,4 +1,4 @@ - + <application>libpq</application> - C Library @@ -1397,6 +1397,14 @@ PGresult *PQexecParams(PGconn *conn, If the array pointer is null then all parameters are presumed to be text strings. + + Values passed in binary format require knowlege of + the internal representation expected by the backend. + For example, integers must be passed in network byte + order. Passing numeric values requires + knowledge of the server storage format, as implemented + in src/backend/utils/adt/numeric.c. + -- cgit v1.2.3