Mysql
 sql >> Database >  >> RDS >> Mysql

Chiamare la stored procedure MySQL in ROR 4

Rails 4 ActiveRecord::Base non supporta execute_procedure metodo, sebbene result = ActiveRecord::Base.connection funziona ancora. cioè

result = ActiveRecord::Base.connection.execute("call example_proc('#{arg1}','#{arg2}')")