search for: databasefunct

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

2006 Mar 06
6
Executing SQL in rails, and the types of the data returned
...re.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 databasefunctions (postgres) return the type boolean. So what''s the deal? And, I don''t like this way of executing SQL. Running find_by_sql on ActiveRecord::Base doesn''t seem to work. At least, it does at first, but when I want to do something with "result", it says: Acti...