On 24 Jun 2008, at 16:17, Grant Croker wrote:

>
> Reposting here (was sent to rubyonrails-talk)
>
> On/El 24/06/08 16:19, Grant Croker wrote/escribió:
>> Hi all,
>>
>> I am in the process of adding Migration support to the Ingres
>> ActiveRecord adapter and have run in to a problem. During the call to
>> create_table the Ingres adapter some how causes ruby to blow the  
>> stack
>> and coredump/segv. I have tracked down the problem down to
>> "add_column_options!" in
>> "lib/active_record/connection_adapters/abstract/ 
>> schema_statements.rb".
>> Specifically the following line never gets executed:
>>
>> sql << " DEFAULT #{quote(options[:default], options[:column])}" if
>> options_include_default?(options)
>>
>> As a result the code keeps looping . Comparing the contents of
>> "options" for MySQL and Ingres I don't see anything of any
>> significance that would cause the call not to work. Below is a dump  
>> of
>> "options" using ruby-debug:

As in options_include_default? returns false ? Even if that were to be  
the case I'm not sure why that would cause a crash, I would expect  
things to work (with the caveat that no column defaults would be set).

Fred
>>


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to