diff options
author | Federico Di Gregorio <fog@initd.org> | 2005-02-28 09:15:56 +0000 |
---|---|---|
committer | Federico Di Gregorio <fog@initd.org> | 2005-02-28 09:15:56 +0000 |
commit | ab02141d486b6fba9fac77a2cb32d5bc3ddaaa1c (patch) | |
tree | ae6aaa87ce92073325fc64fc7f8f1090e1b3914f /lib/extras.py | |
parent | 55744b00cd48bb00c7ab777fd3b9ae53d8bb1b03 (diff) | |
download | psycopg2-ab02141d486b6fba9fac77a2cb32d5bc3ddaaa1c.tar.gz |
Temporary hack to make the AsIs adapter work.
Diffstat (limited to 'lib/extras.py')
-rw-r--r-- | lib/extras.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/extras.py b/lib/extras.py index 5052def..3116aed 100644 --- a/lib/extras.py +++ b/lib/extras.py @@ -76,7 +76,7 @@ class AsIs(object): psycopg 1.99.9 has some optimizations that make impossible to call adapt() without adding some basic adapters externally. This limitation will be - lifted in a future release.In the meantime you can use the AsIs adapter. + lifted in a future release. In the meantime you can use the AsIs adapter. """ def __init__(self, obj): self.__obj = obj @@ -84,7 +84,8 @@ class AsIs(object): return self.__obj def prepare(self, conn): pass - + __str__ = getquoted + class SQL_IN(object): """Adapt any iterable to an SQL quotable object.""" |