diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-03-05 11:33:30 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2018-03-05 11:33:30 -0500 |
commit | 7300469f71f161d47795dcf7415d5a22db8e2ef0 (patch) | |
tree | 1720a6fa3b8afaa48f5b2f928fc2e7a3ba309837 /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | 243f980479c8c05e927a39af649db6dfb67993f4 (diff) | |
download | sqlalchemy-7300469f71f161d47795dcf7415d5a22db8e2ef0.tar.gz |
Only replace first occurrence for COLLATE/ARRAY syntax
Fixed bug in Postgresql COLLATE / ARRAY adjustment first introduced
in :ticket:`4006` where new behaviors in Python 3.7 regular expressions
caused the fix to fail.
Change-Id: Ied3893d7cac210befa0277b55b3b895b0ba1f0d2
Fixes: #4208
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 0cc7c307f..5ae27a996 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1967,7 +1967,8 @@ class PGTypeCompiler(compiler.GenericTypeCompiler): "[]" * (type_.dimensions if type_.dimensions is not None else 1) )), - inner + inner, + count=1 ) |