summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2005-02-28 16:03:22 +0000
committerFederico Di Gregorio <fog@initd.org>2005-02-28 16:03:22 +0000
commit0d4db2ec557ca734f15a4f46a7be004e6c0ca954 (patch)
tree2712d2523bb084d428f84f0da985033ec3b8ff3b
parentcd672525e10826231576e6eb5ab256df1bfed72c (diff)
downloadpsycopg2-0d4db2ec557ca734f15a4f46a7be004e6c0ca954.tar.gz
Case (2) in usercast.py
-rw-r--r--examples/usercast.py3
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."""