mirror of
https://github.com/Infinidat/infi.clickhouse_orm.git
synced 2025-08-02 11:10:11 +03:00
fix enum
This commit is contained in:
parent
260f33f40a
commit
12e36caa93
|
@ -498,7 +498,6 @@ class BaseEnumField(Field):
|
|||
'''
|
||||
import re
|
||||
from enum import Enum
|
||||
db_type = db_type.replace("\\", "")
|
||||
members = {}
|
||||
for match in re.finditer(r"'([\w ]+)' = (-?\d+)", db_type):
|
||||
members[match.group(1)] = int(match.group(2))
|
||||
|
|
Loading…
Reference in New Issue
Block a user