summaryrefslogtreecommitdiff
path: root/doc/src/faq.rst
diff options
context:
space:
mode:
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-02-19 16:16:28 +0000
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>2011-02-19 16:16:28 +0000
commit556b4d461e79fa605c906b1ccd12064ee3b64559 (patch)
tree3212ba678854f0b406b939ead409e088918f47e6 /doc/src/faq.rst
parent75c61c2e80432045eb78a0fa261addf6712b6709 (diff)
downloadpsycopg2-556b4d461e79fa605c906b1ccd12064ee3b64559.tar.gz
Documentation cleanup
Added several links to the Python documentation using the 'intersphinx' extension.
Diffstat (limited to 'doc/src/faq.rst')
-rw-r--r--doc/src/faq.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/src/faq.rst b/doc/src/faq.rst
index 52c82d2..642c3e7 100644
--- a/doc/src/faq.rst
+++ b/doc/src/faq.rst
@@ -73,7 +73,7 @@ I try to execute a query but it fails with the error *not all arguments converte
>>> cur.execute("INSERT INTO foo VALUES (%s)", ("bar",)) # correct
>>> cur.execute("INSERT INTO foo VALUES (%s)", ["bar"]) # correct
-My database is Unicode, but I receive all the strings as UTF-8 `str`. Can I receive `unicode` objects instead?
+My database is Unicode, but I receive all the strings as UTF-8 `!str`. Can I receive `!unicode` objects instead?
The following magic formula will do the trick::
psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
@@ -100,8 +100,8 @@ Transferring binary data from PostgreSQL 9.0 doesn't work.
earlier. Three options to solve the problem are:
- set the bytea_output__ parameter to ``escape`` in the server;
- - use ``SET bytea_output TO escape`` in the client before reading binary
- data;
+ - execute the database command ``SET bytea_output TO escape;`` in the
+ session before reading binary data;
- upgrade the libpq library on the client to at least 9.0.
.. __: http://www.postgresql.org/docs/9.0/static/datatype-binary.html