Forums | Admin

Discussion Forums: open-discussion

Start New Thread Start New Thread
Message: 63650
BY: J. Scott Walton (swalton)
DATE: 2009-01-06 00:44
SUBJECT: test and rake issues with DB2 (Win) and rails

 

Running DB2 V9 and Rails 2.2.2, I'm unable to do any testing. I know about the rake issues with schema dumper but have been manually creating the tables (I'm a long time DB2 DBA).

When I attempt a unit test, (just running the unit test from command line Ruby) during the setup, I get:

1) Error:
test_the_truth(PathTest):
ActiveRecord::StatementInvalid: ActiveRecord::StatementInvalid: [IBM][CLI Driver
SQLCODE=-204: DELETE FROM pathsS" is an undefined name. SQLSTATE=42704
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connecti
on_adapters/abstract_adapter.rb:188:in `log'

The correct table name is "paths" (without the extra S). I also see other extra characters in the table name causing similar -204 SQLCODES.

Can anyone suggest what I'm doing wrong (setup, configuration, what?)?


Thread View

Thread Author Date
test and rake issues with DB2 (Win) and railsJ. Scott Walton2009-01-06 00:44
      RE: test and rake issues with DB2 (Win) and rPraveen Devarao2009-01-06 08:50
            RE: test and rake issues with DB2 (Win) and rPraveen Devarao2009-01-06 08:57
                  RE: test and rake issues with DB2 (Win) and rJ. Scott Walton2009-01-18 16:36
            RE: test and rake issues with DB2 (Win) and rJ. Scott Walton2009-01-18 16:40
                  RE: test and rake issues with DB2 (Win) and rPraveen Devarao2009-01-19 04:16

Post a followup to this message