mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-03 11:50:08 +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")):
|
||||
return _null
|
||||
|
||||
def __str__(self):
|
||||
return str(self.getquoted())
|
||||
|
||||
|
||||
def make_dsn(dsn=None, **kwargs):
|
||||
"""Convert a set of keywords into a connection strings."""
|
||||
|
|
Loading…
Reference in New Issue
Block a user