mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-01 19:00:09 +03:00
add s to placeholder string
This commit is contained in:
parent
bab166e2c1
commit
a042309128
|
@ -442,7 +442,7 @@ class Placeholder(Composable):
|
||||||
|
|
||||||
def as_string(self, context):
|
def as_string(self, context):
|
||||||
if self._wrapped is not None:
|
if self._wrapped is not None:
|
||||||
return f"%({self._wrapped})"
|
return f"%({self._wrapped})s"
|
||||||
else:
|
else:
|
||||||
return "%s"
|
return "%s"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user