:class:`.Engine`, concealing the URL password. Pull request courtesy
Valery Yundin.
+ .. change:: 3867
+ :tags: bug, mysql
+ :tickets: 3867
+
+ The MySQL dialect now will not warn when a reflected column has a
+ "COMMENT" keyword on it, but note however the comment is not yet
+ reflected; this is on the roadmap for a future release. Pull request
+ courtesy Lele Long.
+
.. change:: pg_timestamp_zero_prec
:tags: bug, postgresql
r'(?: +USING +(?P<using_post>\S+))?'
r'(?: +KEY_BLOCK_SIZE *[ =]? *(?P<keyblock>\S+))?'
r'(?: +WITH PARSER +(?P<parser>\S+))?'
+ r'(?: +COMMENT +(?P<comment>(\x27\x27|\x27([^\x27])*?\x27)+))?'
r',?$'
% quotes
)
' PRIMARY KEY (`id`) USING BTREE KEY_BLOCK_SIZE = 16')
assert not regex.match(
' PRIMARY KEY (`id`) USING BTREE KEY_BLOCK_SIZE = = 16')
+ assert regex.match(
+ " KEY (`id`) USING BTREE COMMENT 'comment'")
+ # `SHOW CREATE TABLE` returns COMMENT '''comment'
+ # after creating table with COMMENT '\'comment'
+ assert regex.match(
+ " KEY (`id`) USING BTREE COMMENT '''comment'")
+ assert regex.match(
+ " KEY (`id`) USING BTREE COMMENT 'comment'''")
+ assert regex.match(
+ " KEY (`id`) USING BTREE COMMENT 'prefix''suffix'")
+ assert regex.match(
+ " KEY (`id`) USING BTREE COMMENT 'prefix''text''suffix'")
def test_fk_reflection(self):
regex = self.parser._re_constraint