Replies: 1 comment
-
You could try using If that doesn't work, you'll probably have to drop down to the connection level and call the appropriate JDBC functions. that would be something like: DB.synchronize do |conn|
sproc = conn.prepareCall('SQL for stored procedure call')
sproc.setDate(1, p_start_date)
sproc.setLong(2, p_num_of_days)
sproc.executeQuery
# handle result of query
ensure
sproc&.close
end Unfortunately, I don't have much JDBC experience, as I've only dealt with JDBC when testing Sequel. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm attempting to build out some automated tests for Oracle PL/SQL. I've used Sequel with a ruby based app (api) at the job but at that time didn't need to call Oracle functions and procedures.
For example I have a procedure, ITM_UTILS.CLEANUP_DEBUG_LOG(p_start_date, p_num_of_days). I also have functions that return a value as well as procedures/functions that can specify IN/OUT parameters.
How can I use Sequel to execute my functions/procedures and when either returns a value, capture that?
Thank you.
John...
By the way, Perplexity AI provides an answer using DB.oracle_procedure() which I don't find in Sequel. It also said to try this:
Beta Was this translation helpful? Give feedback.
All reactions