Frederick Cheung wrote:
> On May 25, 11:15�am, Erik Hollensbe <[email protected]>
> wrote:
>> This doesn't seem to work on mysql, at least. We depend on this
>> functionality as we're porting an old app over to rails; does anyone
>> know where I can find out how to disable the magic going on here?
>>
> 
> I don't think this isn't a rails thing (at least I can see anything in
> the fixtures code for that). on the other hand, the mysql
> documentation says: 
> http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html#sqlmode_no_auto_value_on_zero
> 
>>Normally, you generate the next sequence number for the column by inserting 
>>either NULL or 0 into it.
>> NO_AUTO_VALUE_ON_ZERO suppresses this behavior for 0 so that only NULL 
>> generates the next sequence number.
> 
> Fred

Wow; nice catch. I guess my development environment differed from 
production. Thanks so much!
-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to