Title: [533] trunk/activerecord-jdbc/lib/jdbc_adapter: Make oracle pass much more tests by having the drop_table method actually have the same signature and arity as the AR version
Revision
533
Author
olabini
Date
2007-05-04 08:16:20 -0400 (Fri, 04 May 2007)

Log Message

Make oracle pass much more tests by having the drop_table method actually have the same signature and arity as the AR version

Modified Paths

Diff

Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_firebird.rb (532 => 533)


--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_firebird.rb	2007-05-04 08:57:49 UTC (rev 532)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_firebird.rb	2007-05-04 12:16:20 UTC (rev 533)
@@ -42,7 +42,7 @@
       execute "UPDATE RDB$GENERATORS SET RDB$GENERATOR_NAME='#{new_name}_seq' WHERE RDB$GENERATOR_NAME='#{name}_seq'" rescue nil
     end  
 
-    def drop_table(name) #:nodoc:
+    def drop_table(name, options = {}) #:nodoc:
       super(name)
       execute "DROP GENERATOR #{name}_seq" rescue nil
     end

Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mimer.rb (532 => 533)


--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mimer.rb	2007-05-04 08:57:49 UTC (rev 532)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_mimer.rb	2007-05-04 12:16:20 UTC (rev 533)
@@ -22,7 +22,7 @@
       execute "CREATE SEQUENCE #{name}_seq" unless options[:id] == false
     end
 
-    def drop_table(name) #:nodoc:
+    def drop_table(name, options = {}) #:nodoc:
       super(name) rescue nil
       execute "DROP SEQUENCE #{name}_seq" rescue nil
     end

Modified: trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_oracle.rb (532 => 533)


--- trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_oracle.rb	2007-05-04 08:57:49 UTC (rev 532)
+++ trunk/activerecord-jdbc/lib/jdbc_adapter/jdbc_oracle.rb	2007-05-04 12:16:20 UTC (rev 533)
@@ -58,7 +58,7 @@
       execute "RENAME #{name}_seq TO #{new_name}_seq" rescue nil
     end  
 
-    def drop_table(name) #:nodoc:
+    def drop_table(name, options = {}) #:nodoc:
       super(name)
       execute "DROP SEQUENCE #{name}_seq" rescue nil
     end
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to