mirror of
https://github.com/sqlalchemy/sqlalchemy.git
synced 2026-05-28 03:26:01 -04:00
Fix ArrayOfEnum's handling of empty arrays.
Prior to this change a value of `'{}'` would split into the list `['']`.
(cherry picked from commit a2badb751f)
This commit is contained in:
@@ -544,7 +544,7 @@ use the following workaround type::
|
||||
|
||||
def handle_raw_string(value):
|
||||
inner = re.match(r"^{(.*)}$", value).group(1)
|
||||
return inner.split(",")
|
||||
return inner.split(",") if inner else []
|
||||
|
||||
def process(value):
|
||||
if value is None:
|
||||
|
||||
Reference in New Issue
Block a user