[Sqlalchemy-tickets] Issue #4170: URL w/ repeated params (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
From: Michael B. <iss...@bi...> - 2018-01-23 16:59:19
|
New issue 4170: URL w/ repeated params https://bitbucket.org/zzzeek/sqlalchemy/issues/4170/url-w-repeated-params Michael Bayer: bug number one: ``` #!python >>> from sqlalchemy.engine import url >>> u = url.make_url("mysql://s:p@host/db?plugin=foo&plugin=bar") >>> u.query {'plugin': 'bar'} ``` that's a big deal. the plugin system didn't assume this was the case. then, of course, ``` #!python >>> u.query['plugin'] = ['foo', 'bar'] >>> str(u) "mysql://s:p@host/db?plugin=['foo', 'bar']" ``` |