#3267: mysql charset support for older python-mysqldb versions
----------------------+-----------------------------------------------------
 Reporter:  dilinger  |        Owner:  jonas
     Type:  defect    |       Status:  new  
 Priority:  high      |    Milestone:  0.10 
Component:  general   |      Version:  devel
 Severity:  normal    |   Resolution:       
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by dilinger):

 The attached patch works around the lack of 'charset' option in
 MySQLdb.connect().  It checks the version of python-mysqldb; if it turns
 out to be lower than 1.2.1, than it calls MySQLdb.connect() without the
 'charset' option, and manually sets the charset via MySQL's 'SET NAMES'.

 Note that without setting the charset, mysql support breaks horrible; the
 unicode stuff that was merged requires this.

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/3267>
The Trac Project <http://trac.edgewall.com/>
_______________________________________________
Trac-Tickets mailing list
[email protected]
http://lists.edgewall.com/mailman/listinfo/trac-tickets

Reply via email to