diff options
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/psycopg.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/psycopg.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/psycopg.py b/lib/sqlalchemy/dialects/postgresql/psycopg.py index 400c3186e..67d1370f5 100644 --- a/lib/sqlalchemy/dialects/postgresql/psycopg.py +++ b/lib/sqlalchemy/dialects/postgresql/psycopg.py @@ -70,6 +70,7 @@ from ._psycopg_common import _PGExecutionContext_common_psycopg from .base import INTERVAL from .base import PGCompiler from .base import PGIdentifierPreparer +from .base import REGCONFIG from .json import JSON from .json import JSONB from .json import JSONPathType @@ -90,6 +91,10 @@ class _PGString(sqltypes.String): render_bind_cast = True +class _PGREGCONFIG(REGCONFIG): + render_bind_cast = True + + class _PGJSON(JSON): render_bind_cast = True @@ -270,6 +275,7 @@ class PGDialect_psycopg(_PGDialect_common_psycopg): _PGDialect_common_psycopg.colspecs, { sqltypes.String: _PGString, + REGCONFIG: _PGREGCONFIG, JSON: _PGJSON, sqltypes.JSON: _PGJSON, JSONB: _PGJSONB, |