mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-11 03:26:37 +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):
|
def __init__(self, obj):
|
||||||
self.__obj = obj
|
self.__obj = obj
|
||||||
def getquoted(self):
|
def getquoted(self):
|
||||||
return self.__obj
|
return str(self.__obj)
|
||||||
def prepare(self, conn):
|
def prepare(self, conn):
|
||||||
pass
|
pass
|
||||||
__str__ = getquoted
|
__str__ = getquoted
|
||||||
|
|
Loading…
Reference in New Issue
Block a user