#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 Simon G. <[EMAIL PROTECTED]>):
What I think is happening is that one of the converters is returning an
array when we don't want it to. I don't have the bug (I'm using UTF-8
everywhere), and my converters look like this:
{{{
>>> from django.conf import settings as s
>>> import MySQLdb
>>> db = MySQLdb.connect(host=s.DATABASE_HOST, user=s.DATABASE_USER,
passwd=s.DATABASE_PASSWORD, db=s.DATABASE_NAME)
>>> 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 0x265bb0>,
8: <type 'long'>,
9: <type 'int'>,
10: <function Date_or_None at 0x2654b0>,
11: <function TimeDelta_or_None at 0x277570>,
12: <function DateTime_or_None at 0x2773b0>,
13: <type 'int'>,
15: [(128, <type 'str'>)],
246: <class 'decimal.Decimal'>,
248: <function Str2Set at 0x265b70>,
252: [(128, <type 'str'>)],
253: [(128, <type 'str'>)],
254: [(128, <type 'str'>)]}
}}}
Can someone who is having this problem see if they see anything different?
--
Ticket URL: <http://code.djangoproject.com/ticket/2335#comment:12>
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
-~----------~----~----~----~------~----~------~--~---