diff options
author | Bruce Momjian | 2008-06-23 21:10:49 +0000 |
---|---|---|
committer | Bruce Momjian | 2008-06-23 21:10:49 +0000 |
commit | 2296e299986aece2cdf0a4bff273bc505fb81368 (patch) | |
tree | 57411c65224aa52717ed2d31eb4d458460e18bb1 /doc/src | |
parent | 01930cea035d4fd9e490a2d1159b26fbd2f43ef3 (diff) |
Add libpq comment about how to determine the format used for passing
binary values.
Add comments to libpq C function for parameter passing.
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 10 |
1 files changed, 9 insertions, 1 deletions
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 @@ -<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.258 2008/06/01 16:23:08 tgl Exp $ --> +<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.259 2008/06/23 21:10:49 momjian Exp $ --> <chapter id="libpq"> <title><application>libpq</application> - C Library</title> @@ -1397,6 +1397,14 @@ PGresult *PQexecParams(PGconn *conn, If the array pointer is null then all parameters are presumed to be text strings. </para> + <para> + 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 <type>numeric</> values requires + knowledge of the server storage format, as implemented + in <filename>src/backend/utils/adt/numeric.c</>. + </para> </listitem> </varlistentry> |