mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Temporary hack to make the AsIs adapter work (take 2.)
This commit is contained in:
parent
ab02141d48
commit
1ec3c83720
|
@ -81,7 +81,7 @@ class AsIs(object):
|
|||
def __init__(self, obj):
|
||||
self.__obj = obj
|
||||
def getquoted(self):
|
||||
return self.__obj
|
||||
return str(self.__obj)
|
||||
def prepare(self, conn):
|
||||
pass
|
||||
__str__ = getquoted
|
||||
|
|
Loading…
Reference in New Issue
Block a user