Bugs item #15074, was opened at 2007-10-26 00:03
You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=15074&group_id=2014

Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Igor Minar (igorminar)
Assigned to: Nobody (None)
Summary: ConnectionAdapters::JdbcAdapter.indexes is missing name and 
schema_name parameters in the method signature

Initial Comment:
I ran into an issue with a plugin that called connnection.indexes(foo, bar) and 
got an ArgumentError (wrong number of arguments(2 for 1)). 

After looking at the code I fixed the problem with the patch below.

Patch:

--- jdbc_adapter.rb.orig        2007-10-25 23:45:21.000000000 -0700
+++ jdbc_adapter.rb     2007-10-25 23:45:46.000000000 -0700
@@ -504,8 +504,8 @@
         @connection.tables
       end
 
-      def indexes(table_name)
-        @connection.indexes(table_name)
+      def indexes(table_name, name = nil, schema_name = nil)
+        @connection.indexes(table_name, name, schema_name)
       end
 
       def begin_db_transaction

----------------------------------------------------------------------

You can respond by visiting: 
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=15074&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel

Reply via email to