Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Reverted [8318] and [8329], since the change turned out to have no ef…

…fect, upon

closer examination of the C-library layer.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8380 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 93462f95167db14e17df2abeafc1abb1203f34ac 1 parent 4881a4f
Malcolm Tredinnick authored August 15, 2008

Showing 1 changed file with 0 additions and 12 deletions. Show diff stats Hide diff stats

  1. 12  django/db/backends/mysql/base.py
12  django/db/backends/mysql/base.py
@@ -51,18 +51,6 @@
51 51
     FIELD_TYPE.DECIMAL: util.typecast_decimal,
52 52
     FIELD_TYPE.NEWDECIMAL: util.typecast_decimal,
53 53
 })
54  
-if hasattr(FIELD_TYPE, "VARCHAR"):
55  
-    # By default, MySQLdb will return VARCHAR BINARY fields as type str.
56  
-    # This is a bad idea, as BINARY doesn't indicate that it's arbitrary
57  
-    # binary data, but that collation uses the binary representation.
58  
-    # Replacing the list makes it return unicode. MySQLdb later adds
59  
-    # another list entry for non-binary fields.
60  
-    #
61  
-    # MySQLdb 1.2.1p2 doesn't have the VARCHAR attribute, but it also returns
62  
-    # unicode for VARCHAR BINARY columns automatically, so we don't need it
63  
-    # there.
64  
-    django_conversions[FIELD_TYPE.VARCHAR] = [(FLAG.BINARY,
65  
-            lambda s: s.decode('utf-8'))]
66 54
 
67 55
 # This should match the numerical portion of the version numbers (we can treat
68 56
 # versions like 5.0.24 and 5.0.24a as the same). Based on the list of version

0 notes on commit 93462f9

Please sign in to comment.
Something went wrong with that request. Please try again.