search for: first_sub_of_first_root_score

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

2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
...ECT 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 the former, it is a string which contains either "t" or "f". Both da...