logo       

[Rails] Re: Rake db Fixtures MySql autoincrement problem?: msg#03325

RubyonRailsTalk

Subject: [Rails] Re: Rake db Fixtures MySql autoincrement problem?


BrendanC wrote:
> I'm trying to load some Rake Fixtures (rake db:fixtures:load) into a
> MySql database and I'm seeing some weird behaviour with AutoIncrement
> values. Normally this goes up by 1 for each insert which allows me to
> define/create tests. (BTW - normal create/insert from script works
> correctly).
>
> However when I load from fixtures the id field is assigned a large
> random number and the autoinc value on the table is also a large
> number (1054583385) after the load. Has anyone else seen this?

This is normal behavior (I believe the numbers come from a hash of the
record, or something like that). Why is it a problem for you?

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@xxxxxxxxxx
--
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise