rails/rails — pull request #6336 by erichmenge (2012-05-16 00:57:14+00:00)
Title: Fixes issue where SQL fragments prevented type casting based on column

3f352d0 introduced a failing test on PostgreSQL. The column lookup would be 'DISTINCT credit_limit', which isn't a column in the database. As a result, the pluck returns an array of strings, and the test fails. I'm not familiar enough with the guts of AR to know why it doesn't fail for the other databases.

I'm not really sure that my change is the way to go about fixing this. It seems a bit sloppy. I'm sure some of you will have better ideas.