jruby/activerecord-jdbc-adapter — pull request #177 by gregors (2012-02-29 06:52:49+00:00)
Title: Issue #176 - fix ms sql 2000 - wrong primary key where nonstandard table name is used

Issue #176 - fix ms sql 2000 - wrong primary key where nonstandard table name is used.

I added a failing test then added passing code. I've only tested against rails3.2.1. For some reason I can't seem to install older versions of rails properly at the moment but I did add code which should work under ActiveRecord 2.3.0 if someone would test to be sure.