Title: [854] trunk/activerecord-jdbc:
Add h2 to the test suite and fix remove_index for h2
- Revision
- 854
- Author
- nicksieger
- Date
- 2007-12-16 00:47:38 -0500 (Sun, 16 Dec 2007)
Log Message
Add h2 to the test suite and fix remove_index for h2
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/Rakefile (853 => 854)
--- trunk/activerecord-jdbc/Rakefile 2007-12-16 05:47:13 UTC (rev 853)
+++ trunk/activerecord-jdbc/Rakefile 2007-12-16 05:47:38 UTC (rev 854)
@@ -40,7 +40,7 @@
if RUBY_PLATFORM =~ /java/
# TODO: add more databases into the standard tests here.
- task :test => [:test_mysql, :test_jdbc, :test_derby, :test_hsqldb]
+ task :test => [:test_mysql, :test_jdbc, :test_derby, :test_hsqldb, :test_h2]
else
task :test => [:test_mysql]
end
Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_hsqldb.rb (853 => 854)
--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_hsqldb.rb 2007-12-16 05:47:13 UTC (rev 853)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_hsqldb.rb 2007-12-16 05:47:38 UTC (rev 854)
@@ -164,5 +164,9 @@
def tables
@connection.tables.select {|row| row.to_s !~ /^system_/i }
end
+
+ def remove_index(table_name, options = {})
+ execute "DROP INDEX #{quote_column_name(index_name(table_name, options))}"
+ end
end
end
Modified: trunk/activerecord-jdbc/test/h2_simple_test.rb (853 => 854)
--- trunk/activerecord-jdbc/test/h2_simple_test.rb 2007-12-16 05:47:13 UTC (rev 853)
+++ trunk/activerecord-jdbc/test/h2_simple_test.rb 2007-12-16 05:47:38 UTC (rev 854)
@@ -1,6 +1,5 @@
require 'jdbc_common'
require 'db/h2'
-require 'db/logger'
class H2SimpleTest < Test::Unit::TestCase
include SimpleTestMethods
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel