Skip to content

Commit

Permalink
Fix table API returning db types uppercased
Browse files Browse the repository at this point in the history
  • Loading branch information
dmos62 committed Feb 1, 2022
1 parent 306e1d7 commit 06cea56
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions db/columns/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,14 @@ def default_value(self):
@property
def plain_type(self):
"""
Get the type name without arguments
Get the type name without arguments.
The compiled name is further lowercased to counteract what seems to be SQLAlchemy
uppercasing its output.
"""
return self.type.__class__().compile(self.engine.dialect)
type_name = self.type.__class__().compile(self.engine.dialect)
if type_name:
return type_name.lower()

@property
def type_options(self):
Expand Down

0 comments on commit 06cea56

Please sign in to comment.