[Rails] ActiveRecord::Base.connection.select_all() returns integers as strings
Hi,
I'm doing a select_all("SELECT attnum, attname FROM pg_attribute") and the resulting hash has attnum value as string, despite it being an integer column in the database. Am I missing some switch that would turn on the conversion?
Thanks.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/aK8JxPxD4UcJ.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home