Title: [572] trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb: remove system tables from tables call
Revision
572
Author
tirsen
Date
2007-05-10 19:43:12 -0400 (Thu, 10 May 2007)

Log Message

remove system tables from tables call

Modified Paths


Diff

Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb (571 => 572)


--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb	2007-05-10 22:39:40 UTC (rev 571)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_derby.rb	2007-05-10 23:43:12 UTC (rev 572)
@@ -304,10 +304,14 @@
 
     def recreate_database(db_name)
       tables.each do |t|
-        drop_table t rescue nil
+        drop_table t
       end
-    end    
+    end
     
+    def tables
+      super.reject{|t| t =~ /^sys/ }
+    end
+    
     # For migrations, exclude the primary key index as recommended
     # by the HSQLDB docs.  This is not a great test for primary key
     # index.
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to