Title: [622] trunk/activerecord-jdbc: Make reconnect! actually exist on the right object
- Revision
- 622
- Author
- olabini
- Date
- 2007-06-13 11:51:50 -0400 (Wed, 13 Jun 2007)
Log Message
Make reconnect! actually exist on the right object
Modified Paths
Diff
Modified: trunk/activerecord-jdbc/lib/active_record/connection_adapters/jdbc_adapter.rb (621 => 622)
--- trunk/activerecord-jdbc/lib/active_record/connection_adapters/jdbc_adapter.rb 2007-06-11 16:49:25 UTC (rev 621)
+++ trunk/activerecord-jdbc/lib/active_record/connection_adapters/jdbc_adapter.rb 2007-06-13 15:51:50 UTC (rev 622)
@@ -210,6 +210,10 @@
rescue Exception => e
raise "The driver encountered an error: #{e}"
end
+
+ def reconnect!
+ self.adapter.reconnect!
+ end
def adapter=(adapt)
@adapter = adapt
Modified: trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java (621 => 622)
--- trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java 2007-06-11 16:49:25 UTC (rev 621)
+++ trunk/activerecord-jdbc/src/java/JdbcAdapterInternalService.java 2007-06-13 15:51:50 UTC (rev 622)
@@ -162,7 +162,7 @@
/*
# The hacks in this method is needed because of a bug in Rails. Check
- # out type_to_sql in schema_definitions.rb and see if you can see it... =)
+ # out type_to_sql in schema_statements.rb and see if you can see it... =)
*/
public static IRubyObject native_database_types(IRubyObject recv) {
RubyHash tps = (RubyHash)recv.getInstanceVariable("@tps");
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel