mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-04 04:10:09 +03:00
add a __str__ method to NoneAdapter
This commit is contained in:
parent
90ee1ebba5
commit
605118acd1
|
@ -154,6 +154,9 @@ class NoneAdapter(object):
|
||||||
def getquoted(self, _null=b("NULL")):
|
def getquoted(self, _null=b("NULL")):
|
||||||
return _null
|
return _null
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return str(self.getquoted())
|
||||||
|
|
||||||
|
|
||||||
def make_dsn(dsn=None, **kwargs):
|
def make_dsn(dsn=None, **kwargs):
|
||||||
"""Convert a set of keywords into a connection strings."""
|
"""Convert a set of keywords into a connection strings."""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user