Rails sql server query returns true

I was outputting the SQL statement in the console:

> sql = "SELECT flavour from Libation where id=8675309"
> result = ActiveRecord::Base.connection.execute(sql)
=> true

      

I am using oracle extended adapter and wonder why I am only telling the truth. I was expecting something like a mango. I've tried a lot of things and no luck.

+3


source to share


1 answer


Use select_all

instead execute

to get results.



+6


source







All Articles