diff options
author | Federico Di Gregorio <fog@initd.org> | 2005-02-28 16:03:22 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2005-02-28 16:03:22 +0000 |
commit | 0d4db2ec557ca734f15a4f46a7be004e6c0ca954 (patch) | |
tree | 2712d2523bb084d428f84f0da985033ec3b8ff3b | |
parent | cd672525e10826231576e6eb5ab256df1bfed72c (diff) | |
download | psycopg2-0d4db2ec557ca734f15a4f46a7be004e6c0ca954.tar.gz |
Case (2) in usercast.py
-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.""" |