I am trying to execute SQL commands manually so that I can access procedures in NuoDB.
I am using Ruby on Rails and I am using the following command:
ActiveRecord::Base.connection.execute("SQL query")
An "SQL query" can be any SQL statement.
Like, for example, I have a table called "Feedback", and when I execute the command:
ActiveRecord::Base.connection.execute("SELECT `feedbacks`.* FROM `feedbacks`")
This will only return a “true” response instead of sending me all the requested data.
This is the output in the Rails console:
SQL (0.4ms) SELECT `feedbacks`.* FROM `feedbacks` => true
I would like to use this to call stored procedures in NuoDB, but after calling the procedures this will also return a “true” answer.
In any case, can I execute SQL commands and get the requested data instead of getting a “true” response?
sql activerecord ruby-on-rails-3 nuodb
Patrick Angodung Mar 31 '14 at 2:35 a.m. 2014-03-31 02:35
source share