diff options
| author | mike bayer <mike_mp@zzzcomputing.com> | 2018-03-05 18:03:53 -0500 |
|---|---|---|
| committer | Gerrit Code Review <gerrit@ci.zzzcomputing.com> | 2018-03-05 18:03:53 -0500 |
| commit | 0e146706058c8e4920c675644623601f2c4930d7 (patch) | |
| tree | 2709c4126357f658814d543d63560b7d9fe08014 | |
| parent | 9215c797bcbeb9817ebf75a82840f4fa761dd32b (diff) | |
| parent | 7300469f71f161d47795dcf7415d5a22db8e2ef0 (diff) | |
| download | sqlalchemy-0e146706058c8e4920c675644623601f2c4930d7.tar.gz | |
Merge "Only replace first occurrence for COLLATE/ARRAY syntax"
| -rw-r--r-- | doc/build/changelog/unreleased_11/4208.rst | 7 | ||||
| -rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/doc/build/changelog/unreleased_11/4208.rst b/doc/build/changelog/unreleased_11/4208.rst new file mode 100644 index 000000000..6624ce375 --- /dev/null +++ b/doc/build/changelog/unreleased_11/4208.rst @@ -0,0 +1,7 @@ +.. change:: + :tags: bug, postgresql, py3k + :tickets: 4208 + + 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. 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 ) |
