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 `['']`.
This commit is contained in:
@@ -579,7 +579,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