diff options
author | Chase <adeodatus@users.noreply.github.com> | 2016-01-19 22:36:15 -0800 |
---|---|---|
committer | Chase <adeodatus@users.noreply.github.com> | 2016-01-19 22:36:15 -0800 |
commit | a2badb751f09299c925bd96a9fd2e76acca04269 (patch) | |
tree | 5a0fb1083bb4ca47c1363138c6468344ad064a3d /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | 5a279e7ae4417062bf4b73921f382c5e5e415a0b (diff) | |
download | sqlalchemy-pr/229.tar.gz |
Fix ArrayOfEnum's handling of empty arrays.pr/229
Prior to this change a value of `'{}'` would split into the list `['']`.
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 266cfb912..692305319 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -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: |