#180 client_encoding problem

closed-out-of-date
nobody
MySQL (29)
5
2006-06-14
2006-06-14
Anonymous
No

client_encoding param from connection string works
strange with threading.

For example with cherrypy, when i'm selecting row,
first select is ok, then:
UnicodeDecodeError: 'utf8' codec can't decode bytes in
position 0-3:

when threading was disabled:
server.threadPool = 1

all was fine.

Additional link:
http://groups.google.com/group/turbogears-ru/browse_thread/thread/355655bd1607a988/a7e80647563ec92b#a7e80647563ec92b

Discussion

  • Nobody/Anonymous

    Logged In: NO

    This patch fixing trouble:

    sqlobject/mysql/mysqlconnection.py

    66,67d65
    < if self.client_encoding:
    < cursor.execute('SET NAMES ' +
    self.client_encoding)

     
  • Oleg Broytman

    Oleg Broytman - 2006-06-14

    Logged In: YES
    user_id=4799

    The patch was applied to the trunk long ago.

     
  • Oleg Broytman

    Oleg Broytman - 2006-06-14
    • status: open --> closed-out-of-date
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks