Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 97026
BY: Praveen Devarao (praveend)
DATE: 2011-10-05 04:28
SUBJECT: RE: IBM_DB with ActiveRecord unit test errors.

 

Hi Yasuo,

You might want to have a look at the test suite modifications in the IBM_DB package. The files which need modifications (to handle DB2 specifics) is been changed over there.

Coming to your points in the post

1) This is been handled rightly

2) DB2 is not case-sensitive, hence CamelCase and camelcase are same. Due to this when table info is retrieved we get back CAMELCASE which will not match CamelCase. To solve this make changes in schema.rb to create camelcase table with name all in small letters (in a conditional if adapter is IBM_DB).

3) That's correct you cannot have the special character '-' in the table name. To work around this replace the '-' with '_ (in a conditional if adapter is IBM_DB) and you should be good to go. Also note you will need to rename your fixtures file warehouse-things.yml to warehouse_things.yml and inclusion of the same needs to be changed accordingly.

Let me know if you need clarification on any.

Thanks

Praveen


Thread View

Thread Author Date
IBM_DB with ActiveRecord unit test errors.Yasuo Honda2011-10-04 18:27
      RE: IBM_DB with ActiveRecord unit test errors.Praveen Devarao2011-10-05 04:28
            RE: IBM_DB with ActiveRecord unit test errors.Yasuo Honda2011-10-05 20:38
                  RE: IBM_DB with ActiveRecord unit test errors.Praveen Devarao2011-10-06 04:16
                        RE: IBM_DB with ActiveRecord unit test errors.Yasuo Honda2011-10-11 01:32
                              RE: IBM_DB with ActiveRecord unit test errors.Praveen Devarao2011-10-11 02:11
                                    RE: IBM_DB with ActiveRecord unit test errors.Yasuo Honda2011-10-19 21:14

Post a followup to this message