jruby/activerecord-jdbc-adapter — pull request #356 by agios (2013-03-23 10:54:26+00:00)
Title: Always return correct primary key from postgres

The previous implementation failed when the primary key
had no sequence (eg UUID)

Used the code from rails 3.2