diff options
Diffstat (limited to 'django/db/backends/postgresql/psycopg_any.py')
| -rw-r--r-- | django/db/backends/postgresql/psycopg_any.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/psycopg_any.py b/django/db/backends/postgresql/psycopg_any.py index 83e8a9f4d3..e9bb84f313 100644 --- a/django/db/backends/postgresql/psycopg_any.py +++ b/django/db/backends/postgresql/psycopg_any.py @@ -24,3 +24,8 @@ def _quote(value, connection=None): sql.quote = _quote + + +def mogrify(sql, params, connection): + with connection.cursor() as cursor: + return cursor.mogrify(sql, params).decode() |
