DB2 JdbcSpec doesn't contain recreate_database method
-----------------------------------------------------
Key: JRUBY-1584
URL: http://jira.codehaus.org/browse/JRUBY-1584
Project: JRuby
Issue Type: Bug
Reporter: Ryan Shillington
Assignee: Thomas E Enebo
When using DB2, if you run:
jruby -S rake
Even if your tests pass, it fails:
{code}
C:\projects\wishlist>jruby -S rake test
(in C:/projects/wishlist)
C:/jruby-1.0.2/bin/jruby.bat -Ilib;test
"C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb"
"test/functional/editor_controller_test.rb"
Loaded suite
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader
Started
........
Finished in 1.25 seconds.
8 tests, 26 assertions, 0 failures, 0 errors
DEPRECATION WARNING: paginate is deprecated and will be removed from Rails 2.0
(Pagination is moving to a plugin in Rails 2.0: script/plugin install
svn://errtheblog.
com/svn/plugins/classic_pagination) See http://www.rubyonrails.org/deprecation
for details. (called from list at
C:/projects/wishlist/app/controllers/editor_controll
er.rb:12)
DEPRECATION WARNING: paginate is deprecated and will be removed from Rails 2.0
(Pagination is moving to a plugin in Rails 2.0: script/plugin install
svn://errtheblog.
com/svn/plugins/classic_pagination) See http://www.rubyonrails.org/deprecation
for details. (called from list at
C:/projects/wishlist/app/controllers/editor_controll
er.rb:12)
C:/jruby-1.0.2/bin/jruby.bat -Ilib;test
"C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/rake_test_loader.rb"
undefined method `recreate_database' for
#<ActiveRecord::ConnectionAdapters::JdbcAdapter:0x745a745a>
C:/projects/wishlist/config/../lib/tasks/jdbc_databases.rake:67
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/rails.rb:7:in `call'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `each'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in
`synchronize'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in
`invoke_prerequisites'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `each'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:4:in `send'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:4:in `each'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in
`invoke_prerequisites'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/databases.rake:153:in
`synchronize'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/databases.rake:153
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/rails.rb:4:in `call'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `each'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in
`synchronize'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in
`invoke_prerequisites'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `each'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:4:in `send'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:4:in `each'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in
`invoke_prerequisites'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/testing.rake:45:in
`synchronize'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/testing.rake:45
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/rails.rb:4:in
`collect'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/testing.rake:43
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/tasks/rails.rb:4:in `call'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `each'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in
`synchronize'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `each'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in
`standard_exception_handling'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7:in
`standard_exception_handling'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run'
C:/jruby-1.0.2/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7
C:/jruby-1.0.2/bin/rake:16:in `load'
C:/jruby-1.0.2/bin/rake:16
file:/C:/jruby-1.0.2/lib/jruby.jar!/jruby/commands.rb:14:in `load'
file:/C:/jruby-1.0.2/lib/jruby.jar!/jruby/commands.rb:14:in `rake'
:1
rake aborted!
Test failures
(See full trace by running task with --trace)
{code}
The patch is to add the following method to the end of jdbc_db2.rb:
{code}
def recreate_database(name)
tables.each{ |table| drop_table(table) }
end
{code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email