rails/rails — pull request #11846 by gaurish (2013-08-11 20:30:51+00:00)
Title: Upgrade ActiveRecord-JDBC-Adapter to v1.3 for better compatibility with ActiveRecord 4

While trying to run rails tests on JRuby, I noticed LOT(more than 50) of failing tests in ActionView'PolymorphicRoutesTest. noticed that nearly all of them failed because of errors related to AR:JDBC adapter.

I did some research & it turns out the the current version of AR:JDBC v1.2.7 is not well supported & has many bugs. Fortunately, thanks for a recent fundraiser there is a new version which fixes most of the known issues & provides better compatibility with AR 4 & things like `exec_insert`. from their README:

>Version 1.3.x of AR-JDBC adapter strives to provide ActiveRecord 4.x compatibility (as well as still supporting 2.3 and 3.x) from a single code base. It's a recommended update for all AR-JDBC 1.2.x users.

the full change is available [here](https://github.com/jruby/activerecord-jdbc-adapter/blob/master/History.md#130rc1-080313).

after this upgrade all tests in ActionView'PolymorphicRoutesTest are now green