>
> Hey all,
>
> I have to call some pre-existing Oracle stored procedures that have
> cursor out parameters. I've had no luck doing this short of using
> "raw" cursors. Is there a better way to do this?
we have an outparam construct which makes use of cx_oracle's built in
API for this:
result = testing.db.execute(text("begin
foo(:x_in, :x_out, :y_out, :z_out); end;",
bindparams=[bindparam('x_in', Numeric), outparam('x_out', Numeric),
outparam('y_out',
Numeric), outparam('z_out', String)]), x_in=5)
assert result.out_parameters == {'x_out':10, 'y_out':75, 'z_out':None}
im missing that part. the out parameter receives a cursor ? strange.
you should at least modify your code to use cx_oracle's API, check out
their site for information on that. I didn't realize a cursor was a
datatype (seems very strange);