diff options
-rw-r--r-- | examples/usercast.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/usercast.py b/examples/usercast.py index 854e277..fb30237 100644 --- a/examples/usercast.py +++ b/examples/usercast.py @@ -65,7 +65,8 @@ class Rect(object): def __conform__(self, proto): """This is a terrible hack, just ignore proto and return self.""" - return self + if proto == psycopg.extensions.ISQLQuote: + return self def from_points(self, x0, y0, x1, y1): """Init the rectangle from points.""" |