#2335: In some cases MySQLdb returns array.array which causes an error in
a2b_base64()
--------------------------------------------+-------------------------------
   Reporter:  [EMAIL PROTECTED]  |                Owner:  adrian         
     Status:  reopened                      |            Component:  Admin 
interface
    Version:  SVN                           |           Resolution:             
    
   Keywords:  a2b_base64()                  |                Stage:  Accepted   
    
  Has_patch:  0                             |           Needs_docs:  0          
    
Needs_tests:  0                             |   Needs_better_patch:  0          
    
--------------------------------------------+-------------------------------
Comment (by Evren Esat Özkan):

 I have same problem with python-mysqldb (1.2.1-p2-4ubuntu2) and this what
 I get from db.converter:
 
 {{{
 {0: <class 'decimal.Decimal'>,
  1: <type 'int'>,
  2: <type 'int'>,
  3: <type 'long'>,
  4: <type 'float'>,
  5: <type 'float'>,
  7: <function mysql_timestamp_converter at 0xb7d594fc>,
  8: <type 'long'>,
  9: <type 'int'>,
  10: <function Date_or_None at 0xb7d59454>,
  11: <function TimeDelta_or_None at 0xb7d593e4>,
  12: <function DateTime_or_None at 0xb7d593ac>,
  13: <type 'int'>,
  246: <class 'decimal.Decimal'>,
  248: <function Str2Set at 0xb7d59684>,
  252: [(128, <function char_array at 0xb7d59844>), (None, None)],
  253: [(2048, <function Str2Set at 0xb7d59684>), (None, None)],
  254: [(2048, <function Str2Set at 0xb7d59684>), (None, None)]}
 }}}
 
 
 If I upgrade to  MySQL_python-1.2.2-py2.4-linux-i686.egg I get this
 error?!
 
 {{{
 
 File "build/bdist.linux-i686/egg/MySQLdb/connections.py", line 282, in
 set_character_set  SystemError: NULL object passed to Py_BuildValue
 
 }}}
 
 The odd thing is I don't get this error at home with  mysqldb 1.2.2

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2335#comment:13>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to