ActiveRecord execute raw sql not returning any results?

Viewed 13153
ActiveRecord::Base.connection.execute "SELECT sometable.* from sometable limit 10"
   (76.1ms)  SELECT sometable.* from sometable limit 10
=> #<PG::Result:0x007fbd99647608
 @connection=
  #<PG::Connection:0x007fbd9ac05fa8
   @notice_processor=nil,
   @notice_receiver=nil,
   @socket_io=nil>>

Not sure why no results are returned. There is definitely an active connection and I am able to query the database with normal ActiveRecord query interface. But when I switch to raw sql I get the above problem

2 Answers
Related