Is it possible to call a MySQL stored procedure from Ruby?

后端 未结 3 1249
借酒劲吻你
借酒劲吻你 2020-12-10 07:55

When I try to call a stored procedure from Rails, I get this exception:

ActiveRecord::StatementInvalid: Mysql::Error: PROCEDURE pipeline-ws_development.match         


        
3条回答
  •  暖寄归人
    2020-12-10 08:29

    Are you using ActiveRecord::Base.connection.execute? This method should allow you to execute some arbitrary SQL statement that isn't naively supported in the Active Record wrapper.

提交回复
热议问题