From 839e4abf39110ad28c878d272ac926ad49aa6da4 Mon Sep 17 00:00:00 2001 From: Tomer Chachamu Date: Mon, 1 Sep 2014 15:59:13 +0100 Subject: [PATCH] Fix typo in docs --- doc/src/extensions.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/src/extensions.rst b/doc/src/extensions.rst index b7aae389..ceedbc9c 100644 --- a/doc/src/extensions.rst +++ b/doc/src/extensions.rst @@ -189,7 +189,7 @@ deal with Python objects adaptation: .. function:: adapt(obj) - Return the SQL representation of *obj* as a string. Raise a + Return the SQL representation of *obj* as an `ISQLQuote`. Raise a `~psycopg2.ProgrammingError` if how to adapt the object is unknown. In order to allow new objects to be adapted, register a new adapter for it using the `register_adapter()` function. @@ -203,7 +203,7 @@ deal with Python objects adaptation: Register a new adapter for the objects of class *class*. *adapter* should be a function taking a single argument (the object - to adapt) and returning an object conforming the `ISQLQuote` + to adapt) and returning an object conforming to the `ISQLQuote` protocol (e.g. exposing a `!getquoted()` method). The `AsIs` is often useful for this task.