Author: mtredinnick
Date: 2007-04-20 05:05:39 -0500 (Fri, 20 Apr 2007)
New Revision: 5042

Modified:
   django/trunk/AUTHORS
   django/trunk/django/db/backends/mysql/introspection.py
Log:
Fixed #4048 -- When introspecting a MySQL database, map CHAR(n) fields to
Django's CharField type, not TextField. Thanks, Bill Fenner.


Modified: django/trunk/AUTHORS
===================================================================
--- django/trunk/AUTHORS        2007-04-20 09:59:44 UTC (rev 5041)
+++ django/trunk/AUTHORS        2007-04-20 10:05:39 UTC (rev 5042)
@@ -88,6 +88,7 @@
     Dirk Eschler <[EMAIL PROTECTED]>
     Marc Fargas <[EMAIL PROTECTED]>
     [EMAIL PROTECTED]
+    Bill Fenner <[EMAIL PROTECTED]>
     Matthew Flanagan <http://wadofstuff.blogspot.com>
     Eric Floehr <[EMAIL PROTECTED]>
     Jorge Gajon <[EMAIL PROTECTED]>

Modified: django/trunk/django/db/backends/mysql/introspection.py
===================================================================
--- django/trunk/django/db/backends/mysql/introspection.py      2007-04-20 
09:59:44 UTC (rev 5041)
+++ django/trunk/django/db/backends/mysql/introspection.py      2007-04-20 
10:05:39 UTC (rev 5042)
@@ -85,7 +85,7 @@
     FIELD_TYPE.LONG: 'IntegerField',
     FIELD_TYPE.LONGLONG: 'IntegerField',
     FIELD_TYPE.SHORT: 'IntegerField',
-    FIELD_TYPE.STRING: 'TextField',
+    FIELD_TYPE.STRING: 'CharField',
     FIELD_TYPE.TIMESTAMP: 'DateTimeField',
     FIELD_TYPE.TINY: 'IntegerField',
     FIELD_TYPE.TINY_BLOB: 'TextField',


--~--~---------~--~----~------------~-------~--~----~
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