activerecord-jdbc-adapter icon indicating copy to clipboard operation
activerecord-jdbc-adapter copied to clipboard

return mri-like results from execute (mysql2, pg, sqlite3)

Open kares opened this issue 12 years ago • 0 comments

ActiveRecord::Base.connection.execute 'SELECT ...' returns :

#<Mysql2::Result:0x000000036e06d8> ( first is the row itself: ["abcxyz"] ) while ArJdbc returns a Hash for each row: [{"title"=>"abcxyz"}]

same with PostgreSQL's PG::Result returned from execute

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/876441-return-mri-like-results-from-execute-mysql2-pg-sqlite3?utm_campaign=plugin&utm_content=tracker%2F136963&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F136963&utm_medium=issues&utm_source=github).

kares avatar Aug 01 '13 18:08 kares