Skip to content

Commit 5b340b6

Browse files
authored
Fix reflection of JSONB columns (#277)
1 parent 95daed0 commit 5b340b6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Unreleased
33

44
- Fix reflection of CHAR columns (#275)
55
- Fix reflection of TIMESTAMPTZ columns (#276), thanks to @nvachhar
6+
- Fix reflection of JSONB columns (#277)
67

78

89
# Version 2.0.3

sqlalchemy_cockroachdb/base.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from sqlalchemy.dialects.postgresql import ARRAY
88
from sqlalchemy.dialects.postgresql import INET
99
from sqlalchemy.dialects.postgresql import UUID
10+
from sqlalchemy.dialects.postgresql import JSONB
1011
from sqlalchemy.ext.compiler import compiles
1112
from sqlalchemy.util import warn
1213
import sqlalchemy.sql as sql
@@ -60,7 +61,7 @@
6061
"bytea": sqltypes.BLOB,
6162
"bytes": sqltypes.BLOB,
6263
"json": sqltypes.JSON,
63-
"jsonb": sqltypes.JSON,
64+
"jsonb": JSONB,
6465
"uuid": UUID,
6566
"inet": INET,
6667
}

0 commit comments

Comments
 (0)