It should return me two integers,but it´s returning "1".
OK, sorry -- I don't know anything about Oracle procedures, but if I
execute a query using ActiveRecord::Base.connection.execute(sql)
it returns a resultset, e.g. (via script/console)
result = ActiveRecord::Base.connection.execute("select 1")
I believe Alex’s patch was recently added to the Oracle Enhanced
Adapter... if you’re using that and upgrade to the latest version that
includes the patch, you’ll be able to put some debug/log code in your
PL/SQL and get maybe get some idea of what’s going on.
# you could name the argurments
with :a_number=>112, :start_date=>'21/10/2009' etc. based on the
parameters of podeviajar
result = plsql.podeviajar(112, '21/10/2009', '22/10/2009', 1,
1,26112);
puts result[:RESULTV]
puts result[:RESULTBC]