Skip to content

Commit f24a693

Browse files
committed
Types: Add method ObjectArray.as_generic
AFAIK, it is needed for reverse type lookups.
1 parent 07bba7b commit f24a693

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sqlalchemy_cratedb/type/array.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,5 +140,8 @@ def any(self, other, operator=operators.eq):
140140
def get_col_spec(self, **kws):
141141
return "ARRAY(OBJECT)"
142142

143+
def as_generic(self, **kwargs):
144+
return sqltypes.ARRAY
145+
143146

144147
ObjectArray = MutableList.as_mutable(_ObjectArray)

0 commit comments

Comments
 (0)