search for: investmentproductproviderscore

Displaying 1 result from an estimated 1 matches for "investmentproductproviderscore".

2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
...a boolean function, I have to do: result = InvestmentProductProvider.find_by_sql("SELECT rating.investment_product_provider_has_complete_rating(#{id})").at(0) return result.investment_product_provider_has_complete_rating == "t" Whereas in a unittest, I can/must do: result = InvestmentProductProviderScore.find_by_sql("SELECT rating.provider_score_is_current(#{first_sub_of_first_root_score.id})").at(0) assert result.provider_score_is_current I really don''t see the difference between those calls, yet in the latter the field in the result is a boolean, like I would expect, but in...