diff options
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 35a09cfa7..75fa3d7c7 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1512,7 +1512,7 @@ colspecs = { sqltypes.ARRAY: _array.ARRAY, sqltypes.Interval: INTERVAL, sqltypes.Enum: ENUM, - sqltypes.JSON.JSONPathType: _json.JSONPathType, + sqltypes.JSON.JSONPathType: _json.JSONPATH, sqltypes.JSON: _json.JSON, UUID: PGUuid, } @@ -2503,6 +2503,12 @@ class PGTypeCompiler(compiler.GenericTypeCompiler): count=1, ) + def visit_json_path(self, type_, **kw): + return self.visit_JSONPATH(type_, **kw) + + def visit_JSONPATH(self, type_, **kw): + return "JSONPATH" + class PGIdentifierPreparer(compiler.IdentifierPreparer): |