Bugs item #23104, was opened at 2008-12-04 15:45
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=23104&group_id=2014
Category: AR-JDBC
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: type_to_sql causes unexpected nil when using a change_table migration
Initial Comment:
A simple migration using the jdbcmysql adapter fails with an unexpected nil
exception when using the change_table method.
Create a migration using change_table and the string method, e.g.
change_table :users do |t|
t.string :time_zone
end
This fails because the type_to_sql is suppose to return the passed in type if
it is not a native type; however, it the jdbc_adapter version of the method
does not. This can be fixed by changing the first line of the method to
if native = native_database_types[type.to_s.downcase.to_sym]
and adding
else
type
end
at line 38.
----------------------------------------------------------------------
Comment By: Nikos Dimitrakopoulos (demisone)
Date: 2009-02-21 19:13
Message:
Confirmed that it fixes the specific problem with change_table (I don't know if
it breaks anything else).
----------------------------------------------------------------------
Comment By: Nikos Dimitrakopoulos (demisone)
Date: 2009-02-21 19:07
Message:
Any chance for solving this???
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=23104&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel