search for: investmentproductprovid

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

2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
...dels mostly. But I''m wondering if there is a better way of doing it than I do. And, I have a question concerning types of the fields in the result the query produces. First, about the types. In a certain model, to get and return the value of 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.prov...