Ticket #5120: mysql-params-5120.patch
| File mysql-params-5120.patch, 910 bytes (added by thijstriemstra, 17 months ago) |
|---|
-
trac/db/mysql_backend.py
63 63 64 64 Database URLs should be of the form: 65 65 {{{ 66 mysql://user[:password]@host[:port]/database 66 mysql://user[:password]@host[:port]/database[?param1=value¶m2=value] 67 67 }}} 68 68 """ 69 69 implements(IDatabaseConnector) … … 225 225 if port == None: 226 226 port = 3306 227 227 cnx = MySQLdb.connect(db=path, user=user, passwd=password, 228 host=host, port=port, charset='utf8' )228 host=host, port=port, charset='utf8', **params) 229 229 if hasattr(cnx, 'encoders'): 230 230 # 'encoders' undocumented but present since 1.2.1 (r422) 231 231 cnx.encoders[Markup] = cnx.encoders[types.UnicodeType]
