暫定的な対応
とりあえずもともとのコードの意図を読み取った対応ではないので、全然お勧めできませんが、テスト動かなきゃしょうがないので、こんな対応をしました。
module ActiveRecord::ConnectionAdapters class JdbcAdapter def _execute(sql, name = nil) if JdbcConnection::select?(sql) @connection.execute_query(sql) elsif JdbcConnection::insert?(sql) # @connection.execute_insert(sql) @connection.execute_update(sql) else @connection.execute_update(sql) end end end end
というコードをどこかに書いて、config/environment.rb からrequireするだけです。次のバージョンに期待してます。