[Sqlalchemy-commits] commit/sqlalchemy: zzzeek: Render ARRAY index embedded between type and COLLAT
Brought to you by:
zzzeek
From: Bitbucket <com...@bi...> - 2017-06-08 21:08:20
|
1 new commit in sqlalchemy: https://bitbucket.org/zzzeek/sqlalchemy/commits/ec422fb70e00/ Changeset: ec422fb70e00 Branch: master User: zzzeek Date: 2017-06-08 21:06:53+00:00 Summary: Render ARRAY index embedded between type and COLLATE Fixed bug where using :class:`.ARRAY` with a string type that features a collation would fail to produce the correct syntax within CREATE TABLE. The "COLLATE" must appear to the right of the array dimensions, so we are using regexp substitution to insert the brackets in the appropriate place. A more heavyweight solution would be that datatypes know how to split up their base type vs. modifiers, but as this is so specific to Postgresql ARRAY it's better to handle these cases more locally. Change-Id: I394c3c673eb60689e51b5301e51651972cfdb4c0 Fixes: #4006 Affected #: 3 files Repository URL: https://bitbucket.org/zzzeek/sqlalchemy/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. |