On 12/11/06, John Morton <[EMAIL PROTECTED]> wrote:
> On Tuesday 12 December 2006 03:10, John Morton wrote:
> >  I'm working with an introspected model against tables in a mysql backed
> > with the MyISAM engine, and I'm having problems when creating new objects.
> > Basically, I instantiate a new instance of the model, save the new object
> > with the save method, then test the primary key attribute.
>
> The database introspection was correctly detecting which field to set as the
> primary key, but failed to detect that that column was autoincrementing—it
> should have assigned AutoFields instead of IntegerFields.
>
> Bug? Should I file it?

Yes, definitely go ahead and file that. Looks like the "inspectdb"
option should do a better job of detecting AutoFields on MyISAM
tables. (Have you confirmed it only happens on MyISAM tables, as
opposed to the other MySQL table types?)

Adrian

-- 
Adrian Holovaty
holovaty.com | djangoproject.com

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to